1.

Solve : Suppress the black DOS screen when running a batch file?

Answer»

My clients are running Window XP.

I have to put a batch in the allusers startup folder. When my users login, a black DOS screen pops up and RUNS the file. The PROBLEM is some "smart" users decide to click the x and exit out of the script before it finishes. LATER on they will complain that things don't work.

Is there a way to suppress this black DOS screen from showing up when it's running?

Thanks.You could download this file cmdow.exe , place it in system32 folder and begin your batch script with the line
cmdow @ /HID
Run the script with Code: [Select]start /min and the batch file will run minimized.

FBfb, like the TS said, some SMART people are clicking the X. If they're smart enough to do that, they're smart enough to restore a window. Just use the bat2exe.exe program available in the utilities.So you want a batch file to run in the background. Good way of getting people to tell you how to do it. If you said you want to run a batch file in the background, people wouldn't have told you in the first place.Well, the start /min seemed to do the trick but it leaves the dos screen minimized after the script is completed successfully.

Anyway to exit out after it's done?

Thanks.To exit the batch file type 'exit' as the LAST line.

FBWhat does your batch exactly do at start up that would make the users want to exit it? ( Guessing it has some sort of restrictive function ) ( "Maybe there is a better solution we can provide through Group Policy etc" )DUDE. When a black screen that could possibly Trojan pops up. You want to exit it.



Discussion

No Comment Found