Here you will have to create a batch(.bat) file. But dont worry, you do not need to have knowledge of batch file programming.
Open notepad and paste the following code in it:
cd C:\users\%username%\AppData\Local Rmdir /S /Q Temp
Replace %username% with your account username. Account should have administrative privileges.
Save the file with .bat extension. You can execute it right away. But to refrain from the pain of executing this file everytime, you just have to place it in the startup folder.
So save the file in C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Now your Temp directory will be cleaned automatically at every startup. On can studying the batch file a lil bit, you can by yourself create a similar kind of bat file for any other temp folder which seems to be using your diskspace.
Open notepad and paste the following code in it:
cd C:\users\%username%\AppData\Local Rmdir /S /Q Temp
Replace %username% with your account username. Account should have administrative privileges.
Save the file with .bat extension. You can execute it right away. But to refrain from the pain of executing this file everytime, you just have to place it in the startup folder.
So save the file in C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Now your Temp directory will be cleaned automatically at every startup. On can studying the batch file a lil bit, you can by yourself create a similar kind of bat file for any other temp folder which seems to be using your diskspace.
0 comments:
Post a Comment