Andrea, See the delete_oldfiles.bat I posted for an example of checking for a parameter. Do something like IF "%1"=="" echo No parameter 1 passed. Books I haven't tried these but some have suggested: Windows Admin Scripting Little Black Book By Jesse Torres Windows NT Shell Scripting Macmillan Technical Publishing ISBN 1-57870-047-7 Resources NT batch specific news:alt.msdos.batch.nt http://groups.google.com/groups?oi=djq&as_ugroup=alt.msdos.batch.nt UltraTech knowledge base http://www.ultratech-llc.com/Personal/Files/?File=ResKit.TXT JSI Windows NT/2000 Tips, Tricks, Registry Hacks and more... http://www.jsiinc.com/Reghack.htm#Tip%20Index NT/Win2k scripting - good on bat differences between NT and DOS http://www.seanet.com/~shardy/ntscript.html Resources batch general: Batfiles: The DOS batch file programming handbook and tutorial - good examples and hints / tricks http://home7.inet.tele.dk/batfiles/ DOS Batch Language: A personal view by Ted Davis - good intro for beginners http://131.151.112.77/~batch/batchtoc.htm news:alt.msdos.batch http://groups.google.com/groups?oi=djq&as_ugroup=alt.msdos.batch Multilingual Batch Programs http://gearbox.maem.umr.edu/~batch/multilingual.html Programs by Prof. Timo Salmi - THE author of the alt.msdos.batch FAQ http://garbo.uwasa.fi/pc/ts.html and then search for tsbat67.zip 184193 Mar 8 11:16 A collection of useful batch files and tricks, T.Salmi Have fun, Bruce -----Original Message----- Sent: Monday, 4 June 2001 2:35 Hi, Thank you all very much for answering my NT batch script question. Do you mind I ask another one? I pass in SID as a parameter, if they don't pass it in, I'd like to echo out an error message. So how to check whether the parameter is passed in or not? I never write bat file before. Are there some good ways, web site/book/doc that I can do some research by my own, so I don't have to bug people whenever I got a question. Thank you! Andrea -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Reardon, Bruce (CALBBAY) INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).