Kinda long, but here is a script that should get you rolling..

http://cwashington.netreach.net/depo/view.asp?Index=512&ScriptType=command

You maybe able to search this newsgroup for an answer too..
http://groups.google.com/groups?oi=djq&as_ugroup=alt.msdos.batch.nt

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's