• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Stop DSO window when using batch files?

Bluto

Senior member
Hello, I'm doing alot of desktop publishing and it's very graphic intensive. I end up with alot of temp files that I prefer to delete after each day. I decided to write a small batch file to do this and it works fine but I can't seem to figure out how to stop the MS DOS window from popping up each time I run the batch file.

Does anyone know how I can just run this file from say a shortcut and not have this pesky window pop up each time?

Thank you.....

Bluto
 
I don't know how to keep it from popping up, but if you have exit at the end of the batch file it should automatically close it for you.

If that does't work then Right click the shortcut->Programs tab. Now check the box to close on exit->Apply->OK.
 
Hi Damaged....

I tried that, and it helps....thank you!. At least the window goes away faster, but it's still annoying and distracting. I would like to make it stay minimized or keep it from opening in the first place.

Anyone else have any ideas?

Thanks all!
 
Looks like the best you're gonna get is to right click on the shortcut again, program again, then under Run select minimized.

All you'll get is the little rectangle briefly in the task bar.
 
Hello again.....

I tried using the 'Run Minimized' option but that doesn't seem to work either. The window comes up and tells me which programs it's deleting and then it disappears.

Any more ideas would be good please.

Thanks....

Bluto
 
Sure. No problem. I haven't messed with DOS batch files much at all since 1994. Shell scritping in *NIX...sure. 🙂

Kinda fun trying to remember some of this stuff. Obviously I had to poke around with an MS DOS shortcut in Windows to figure out how to run it minimized though.
 
Yes.....I did that but it comes up just the same. Doing the 'delete' makes it confirm that things have been deleted...which is fine, but I don't want or need that.

It's a royal pain the @$$. Any other ideas?

Bluto
 
I asssume you are doing a del *.* command. I don't think there is anyway to stop the prompt for that command.

there are 2 possible alternatives:

use deltree [path to temp directory] /y. This will delete the whole temporary files directory and won't ask for confirmation. Just make sure you have the right directory listed

use del *.extension. If you specify the extension, you shouldn't be prompted. More than likely all the files in the temp directory are of 1 or 2 file types and you can use an appropriate number of del commands to get rid of them.
 
Man I had a flashback when I saw this one. I created a batch file that does this. You put it on the root or in any folder, right click and create shortcut on desktop, right click shortcut on desktop and change properties to run minimized and close on exit. You don't get popup box and it runs without interaction:

I called it deltemp.bat

@echo off
cd\
echo y | del c:\windows\temp\*.*

Good luck
 
Back
Top