USEFUL SIMPLE BATCH FILES WHICH I USE ON DAILY BASIS
Page content
UPDATED ON: 2024-12-12
I use these automation on daily basis to improve my workflow.
All batch files are tested under Windows 7 x64.
► SHUTDOWN PUTER
shutdown /p /f
► REBOOT PUTER
shutdown /r /f /t 0
► RESTART AUDIO SERVICE
net stop "AudioSrv"
net start "AudioSrv"
► DISABLE HIBERNATE
powercfg -h off
► DISABLE/ENABLE LAN INTERFACES
netsh interface set interface name="Local Area Connection" admin=disabled
netsh interface set interface name="Local Area Connection" admin=enabled
To reset IP address:
netsh interface ipv4 set address name="Local Area Connection" source=dhcp
Where: Local Area Connection ◄ the name of your network connection
► TERMINATE FROZEN APPLICATIONS
taskkill /F /IM vegas180.exe
wmic process where name="vegas180.exe" call terminate
Vegas is prone to freezing, so good example is here. Second method is more efficient for my workflow.
► START APPLICATION WITH TIMEOUT
ping -n 20 127.0.0.1 > nul
start "Browser" "C:\Program Files\Iceweasel_x64\App\iseweasel.exe"
where n sets delay in seconds.
► FORCE TIME CLOCK RESYNC
w32tm /resync
► RESTART AERO GUI
sc stop Themes
net stop uxsms
sc start Themes
net start uxsms
start C:\Windows\Resources\Themes\aero.theme
► RESTART AERO SIDEBAR
taskkill /IM sidebar.exe /f
ping -n 4 localhost > nul
c:
start "sidebar" sidebar.exe
► COPY TO/FROM ANDROID DEVICE
COPY TO DEVICE:
adb push /storage/emulated/0/Download C:\2Phone\
COPY FROM DEVICE:
adb pull /storage/emulated/0/DCIM/Camera C:\Downloads
Take a note that Adb tools should be installed, USB debugging enabled in Developer settings of Android device