1.

Solve : Don't show MSDOS prompt?

Answer»

Hi there!
I've just created a very simple batch file, which logges a user every time he/she logs on, like this:

Code: [Select]del LOGGED\*.txt
copy %USERNAME%.txt logged\%USERNAME%.txt

(in the directory under "logged", there are 5 files named with all of the usernames, so they get copied to logged each time he/she logs on; the batch file starts up automatically, because I've created a link in the C:\Documents and Settings\All users\START Menu\Programs\StartUp Dir). It all works fine.

But, as being fond of clean SCREENS without adds you don't need, is there a way to prevent the MS-DOS window from appearing at all when a user logs in? No OUTPUT results, no MS DOS-window flashing, NADA?

Thanks in advance,
FrankTry using START /MIN to launch your batch file. You may have to add an EXIT command as the last line of your batch file.

Note: This should work provided your batch file does not produce any console interrupts.

Hope this helps.



Discussion

No Comment Found