PDA

View Full Version : Simple Batch Problem


Ray Stainer
02-17-2002, 12:32 PM
Tried all combination of "rems", but batch file will not close every time.
Can you show me how I get it to close and exit to desktop from whence it starts. Written in Notepad.

@echo off
copy \lotus\work\123\*.123 a:\backups\*.*
cls
echo.
dir a:\backups
pause
rem END
rem EXIT
rem cls

Also can I restrict activating the file with a Password.

Many thanks
Ray Stainer
-----------
Ende gut, alles gut

Rick
02-17-2002, 12:38 PM
If you start it from an Icon on the desktop.
Right click the icon.
The properties
Under Program Tab find and mark the check box.
Close On exit

Ray Stainer
02-17-2002, 12:55 PM
Thanks.......Perfect

"All IS well, that ENDS well"

Ray Stainer

Ray Stainer
02-17-2002, 02:57 PM
Having received the perfect recipe for curing my bat file termination, I would please like to know if someone can help me with the second problem I included in the project. "can I arrange for the batch file to be password protected?"

Thanks again.

Ray Stainer