Connecting Tech Pros Worldwide Forums | Help | Site Map

Deleting temporary files with just one click

lotus18's Avatar
Site Addict
 
Join Date: Nov 2007
Location: Zamboanga City, Philippines
Posts: 860
#1   Nov 13 '07
Hi everyone,

Every time we are doing a project using vb6 we noticed that a temporary file will be created and created until it looks messy on a folder where the project resides.

Edit this code in Notepad and save it as deltemp.bat or any filename you wanted with a .bat extension.

Expand|Select|Wrap|Line Numbers
  1. cls
  2. del *.tmp /s
Save the batch file with the same folder of your project in vb6 to delete all the temporary files in that folder.

Note: You can also change or add the what specific file you want to delete. I am not liable for any possible damage caused by negligence. Please be careful . : )



Reply