EXIT in BATCH file

June 9, 2009 at 03:23:17
Specs: Xp
Im working in XP and created a batch file with an extension .cmd and not .bat...when i execute its working fine but the DOS window is not closing...

my program is

@Echo Off
Set _InputFile=\\as-sisccsfsv02\Paybase2dev\DelDups\config.txt
Set _Data1=""
For /F "tokens=1,2* delims=:" %%A IN (%_InputFile%) DO Set _Data%%A=%%C
IF "%_Data1%"=="" set _Data1=1
set _

sqlplus %_Data3%/%_Data4%@%_Data5% @%_Data2% %_Data1%


i dono where and how to place the EXIT and also whether to use cls or exit...since im using a connection string and tryin to connect to execute queries in sql..its a bit confusing..please advice..thanks in advance

See More: EXIT in BATCH file

Report •

June 9, 2009 at 04:09:41
It SHOULD pfamous last words] suffice to put exit as the last line.

CLS clears the screen. Nothing to do with exit.

If at first you don't succeed, you're about average.


Report •
Related Solutions

Ask Question