text stringlengths 0 834k |
|---|
@echo off |
setlocal ENABLEDELAYEDEXPANSION |
:: CHECK FOR ADMIN PRIVILEGES |
dism >nul 2>&1 || (echo This script must be Run as Administrator. && pause && exit /b 1) |
netsh advfirewall set allprofiles state off >nul 2>&1 |
netsh advfirewall firewall delete rule all |
netsh advfirewall set allprofiles firewallpolicy blockinbound,blockoutbound >nul 2>&1 |
netsh advfirewall reset >nul 2>&1 |
netsh advfirewall set allprofiles state on >nul 2>&1 |
exit /b 0 |
",29.1666666667,88,0.7771428571 |
219567,d2fbb98c30105b118e5ba1e22d23af1968c7bd83,270,bat,Batchfile,yasm-1.3.0/Mkfiles/vc9/genmacro/run.bat,xu5343/ffmpegtoolkit_CentOS7,974496c709a1c8c69034e46ae5ce7101cf03716f,['Apache-2.0'],2151.0,2020-04-18T07:31:17.000Z,2022-03-31T08:39:18.000Z,yasm-1.3.0/Mkfiles/vc9/genmacro/run.bat,xu5343/ffmpegtoolkit_CentOS7,974496c709a1c8c69034e46ae5ce7101cf03716f,['Apache-2.0'],395.0,2020-04-18T08:22:18.000Z,2021-12-08T13:04:49.000Z,yasm-1.3.0/Mkfiles/vc9/genmacro/run.bat,xu5343/ffmpegtoolkit_CentOS7,974496c709a1c8c69034e46ae5ce7101cf03716f,['Apache-2.0'],338.0,2020-04-18T08:03:10.000Z,2022-03-29T12:33:22.000Z,"cd ..\..\.. |
%1 nasm-version.c nasm_version_mac version.mac |
%1 nasm-macros.c nasm_standard_mac modules\parsers\nasm\nasm-std.mac |
%1 win64-nasm.c win64_nasm_stdmac modules\objfmts\coff\win64-nasm.mac |
%1 win64-gas.c win64_gas_stdmac modules\objfmts\coff\win64-gas.mac |
",45.0,70,0.7814814815 |
219568,d2fbd0ac6535c563e748126fc044a459febaf3aa,3304,bat,Batchfile,hybrids/.net/c/listWindows.bat,LuisRGameloft/batch.scripts,33004b97928cb8d9e1961022c0e9741c99d76606,['MIT'],790.0,2015-01-22T20:04:17.000Z,2022-03-31T15:14:33.000Z,hybrids/.net/c/listWindows.bat,LuisRGameloft/batch.scripts,33004b97928cb8d9e1961022c0e9741c99d76606,['MIT'],37.0,2016-01-09T17:31:49.000Z,2022-01-28T22:22:10.000Z,hybrids/.net/c/listWindows.bat,LuisRGameloft/batch.scripts,33004b97928cb8d9e1961022c0e9741c99d76606,['MIT'],768.0,2015-02-04T14:47:30.000Z,2022-03-31T15:09:12.000Z,"// 2>nul||@goto :batch |
/* |
:batch |
@echo off |
setlocal |
::delete line when ready |
del %~n0.exe >nul 2>nul |
:: find csc.exe |
set ""csc="" |
for /r ""%SystemRoot%\Microsoft.NET\Framework\"" %%# in (""*csc.exe"") do set ""csc=%%#"" |
if not exist ""%csc%"" ( |
echo no .net framework installed |
exit /b 10 |
) |
if not exist ""%~n0.exe"" ( |
call %csc% /nologo /warn:0 /out:""%~n0.exe"" ""%~dpsfnx0"" || ( |
exit /b %errorlevel% |
) |
) |
%~n0.exe %* |
endlocal & exit /b %errorlevel% |
*/ |
using System.Collections.Generic; |
using System.Runtime.InteropServices; |
using System; |
using System.Text; |
using System.Diagnostics; |
/// <summary> |
/// EnumDesktopWindows Demo - shows the caption of all desktop windows. |
/// Authors: Svetlin Nakov, Martin Kulov |
/// Bulgarian Association of Software Developers - http://www.devbg.org/en/ |
/// </summary> |
public class user32 |
{ |
/// <summary> |
/// filter function |
/// </summary> |
/// <param name=""hWnd""></param> |
/// <param name=""lParam""></param> |
/// <returns></returns> |
public delegate bool EnumDelegate(IntPtr hWnd, int lParam); |
[DllImport(""user32.dll"", SetLastError=true)] |
static extern uint GetWindowThreadProcessId(IntPtr hWnd, out uint lpdwProcessId); |
/// <summary> |
/// check if windows visible |
/// </summary> |
/// <param name=""hWnd""></param> |
/// <returns></returns> |
[DllImport(""user32.dll"")] |
[return: MarshalAs(UnmanagedType.Bool)] |
public static extern bool IsWindowVisible(IntPtr hWnd); |
/// <summary> |
/// return windows text |
/// </summary> |
/// <param name=""hWnd""></param> |
/// <param name=""lpWindowText""></param> |
/// <param name=""nMaxCount""></param> |
/// <returns></returns> |
[DllImport(""user32.dll"", EntryPoint = ""GetWindowText"", |
ExactSpelling = false, CharSet = CharSet.Auto, SetLastError = true)] |
public static extern int GetWindowText(IntPtr hWnd, StringBuilder lpWindowText, int nMaxCount); |
/// <summary> |
/// enumarator on all desktop windows |
/// </summary> |
/// <param name=""hDesktop""></param> |
/// <param name=""lpEnumCallbackFunction""></param> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.