Last active
February 4, 2021 13:12
-
-
Save asif-mistry/a237ac57f6aa1da6e4e85743807a7ce7 to your computer and use it in GitHub Desktop.
Batch files for usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::Get rid of subfolders while keeping their contents | |
::https://superuser.com/questions/85921/get-rid-of-subfolders-while-keeping-their-contents | |
for /r %%i in (*) do move "%%i" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TASKKILL /IM chrome.exe | |
TASKKILL /IM devenv.exe | |
TASKKILL /IM skype.exe /f | |
TASKKILL /IM java.exe /f | |
TASKKILL /IM studio64.exe /f | |
TASKKILL /IM vncviewer.exe | |
TASKKILL /IM notepad++.exe | |
TASKKILL /IM Postman.exe | |
TASKKILL /IM KidCheckClient.exe | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir newfiles | |
for %%a in ("*.gif") do "C:\path\to\ffmpeg\x64\ffmpeg.exe" -i "%%a" -c:v libx264 -preset slow -crf 20 -c:a libvo_aacenc -b:a 128k "newfiles\%%~na.mp4" | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for /r %%v in (*.apk) do adb -d install -r "%%v" | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::RemovePrefix.bat prefix fileMask | |
::https://stackoverflow.com/questions/10202540/rename-or-remove-prefix-multiple-files-to-each-ones-number | |
@echo off | |
setlocal | |
for %%A in ("%~1%~2") do ( | |
set "fname=%%~A" | |
call ren "%%fname%%" "%%fname:*%~1=%%" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start "" /max "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" | |
#;;start startup.ahk | |
start "" /max "C:\Users\Public\Desktop\VNC Viewer.lnk" | |
#start "" "C:\Users\Public\Desktop\OpenVPN Connect.lnk" | |
start "" /max "C:\Users\Asif\Desktop\Skype - Shortcut.lnk" | |
#start "" /max "C:\Users\Asif\Desktop\Postman.lnk" | |
start "" "C:\Users\Asif\Desktop\startup.ahk - Shortcut.lnk" | |
#start "" "D:\GIT\KidCheck.NetCoreAPI\KidCheck.NetCoreAPI.sln" | |
#start "" "C:\Users\Asif\Desktop\Android Studio.lnk" | |
start "" /max "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Notepad++.lnk" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment