In my autoexec.bat I placed the statement:
@IF EXIST C:\WINDOWS\TEMP\*.* DEL C:\WINDOWS\TEMP\*.*
I did this for obvious reasons....to empty my TEMP folder on bootup. My question is this:
I assumed that if the folder had any contents that they would be deleted automatically without being prompted. However, that doesn't happen. I continually get prompted for confirmation when there are files in that folder. Does anyone know of a way to eliminate the promping? The DEL and ERASE commands don't offer a switch that bypasses prompting. What's strange tho is the fact that there IS a switch to force the command to prompt you first before deleting the files....which is kind of redundant since it prompts me anyway even without the switch. This post should probably be in the DOS forum so I apologize. I am running Win98SE and would like to use a simple DOS command at bootup to empty my WINDOWS\TEMP folder.
Any ideas?
@IF EXIST C:\WINDOWS\TEMP\*.* DEL C:\WINDOWS\TEMP\*.*
I did this for obvious reasons....to empty my TEMP folder on bootup. My question is this:
I assumed that if the folder had any contents that they would be deleted automatically without being prompted. However, that doesn't happen. I continually get prompted for confirmation when there are files in that folder. Does anyone know of a way to eliminate the promping? The DEL and ERASE commands don't offer a switch that bypasses prompting. What's strange tho is the fact that there IS a switch to force the command to prompt you first before deleting the files....which is kind of redundant since it prompts me anyway even without the switch. This post should probably be in the DOS forum so I apologize. I am running Win98SE and would like to use a simple DOS command at bootup to empty my WINDOWS\TEMP folder.
Any ideas?