A few homemade batch files to make boring tasks efficient and fun.
Used to efficiently acheive the daily microsoft rewards search quota.
You can use User Agent Switcher and Manager to change your user-agent to Mobile (Android or iOS) to complete the microsoft rewards mobile search quota
Explanation of the batch file:
Opens CMD as Admin: cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
Search with default windows browser, letters A to Y: @start "" "https://www.bing.com/search?q=%*"
Timeout between each letter: 1 secs
Timeout when finished: 10 secs
Close CMD: exit
Restarts Windows Proot Spooler (turning it off and on always fixes stuff)
Explanation of the batch file:
Opens CMD as Admin: cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
Stop Print Spooler:net stop spooler
Timeout: 3 secs
Start Print Spooler: net start spooler
Close CMD: exit
Opens Command Prompt with Administrator Privlidges
Explanation of the batch file:
Opens CMD as Admin: cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
Requirements:
- Creating a RunCMD with Admin Privledges in Task Schedular
- Create a new shortcut with this command:
C:\Windows\System32\schtasks.exe /run /tn "RunCMD"
Creating a new shortcut:
Command: C:\Windows\System32\schtasks.exe /run /tn "RunCMD"
Shortcut Icon (optional): %windir%\system32\cmd.exe
Create New Task via Task Schedular:
General Tab:
Name: RunCMD
Description: This runs Command Prompt (CMD) with Administrator Privledges
Security Options: ✅ Run with highest privlidges
Actions Tab:
New... -> Start a program -> Program/script: C:\Windows\System32\cmd .exe
Conditions Tab:
Untick:
❌ Start the task only if the computer is on AC power
❌ Stop if the computer switches to battery power