Batch files usefull commands

Create file with .bat (file extension)

now here are some things thats will helps in gaming or otther staff ;)

select a folder where file is holding
for %%a in (.) do set currentfolder=%%~na
%currentfolder% <-- this will give you a name

select a name of a file
%~n0 <-- this will return a file name

set priority of process
wmic process where name="FILENAME.exe" CALL setpriority "normal"


priority: low, normal, high.

Pause batch program
pause
you can stop program to check if everythinks goes in your mind ;)

kill process
taskkill processname.exe

Deleting unwanted catche and prefetch files from windows
if u know what you are doing use it a s administrator
del /f /s /q C:\Users\%username%\AppData\Local\Temp\*.*
del /f /s /q C:\Users\%username%\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\*.*
del /f /s /q C:\Windows\Temp\*.*
del /f /s /q C:\Windows\SoftwareDistribution\Download\*.*
del /f /s /q C:\Program Files (x86)\InstallShield Installation Information\*.*
del /f /s /q C:\Windows\Prefetch\*.*
del /f /s /q C:\Windows\SysWOW64\config\systemprofile\AppData\LocalLow\Microsoft\CryptnetUrlCache\*.*