I couldn't find copy, but here's the ones for XCOPY: Exit code Description 0 Files were copied without error. 1 No files were found to copy. 2 The user pressed CTRL+C to terminate xcopy. 4 Initialization error occurred. There is not enough memory or disk space, or you entered an invalid drive name or invalid syntax on the command line. 5 Disk write error occurred. Michael Boggan wrote: > I am not much on batch programs either. What are the errorlevels for copy? > Is there some where I can look that up? > > -------------------------------------------- > Michael Boggan, Network Eng/Citrix Admin > Virtual Desktop Inc. > Dallas, Tx > ph. (972) 960.6400 > f. (972) 960.6445 > email. mboggan@xxxxxxxxxxx > -------------------------------------------- > > > -----Original Message----- > From: Michael Boggan > Sent: Friday, December 20, 2002 4:22 PM > To: 'thin@xxxxxxxxxxxxx' > Subject: [THIN] Re: OT: Batch file question > > > i have: > > copy %localfolder%\*.* %share%\folder\ /v > > was wanting to know what errorlevels to use. I think that should do it. > > Thanks, > > -------------------------------------------- > Michael Boggan, Network Eng/Citrix Admin > Virtual Desktop Inc. > Dallas, Tx > ph. (972) 960.6400 > f. (972) 960.6445 > email. mboggan@xxxxxxxxxxx > -------------------------------------------- > > > -----Original Message----- > From: George Yobst [mailto:george2@xxxxxxxxxxxxxxx] > Sent: Friday, December 20, 2002 4:13 PM > To: thin@xxxxxxxxxxxxx > Subject: [THIN] Re: OT: Batch file question > > > > Hi Michael, > I'm not a batch/script EXPERT, but have done some. > It may help to show us what you've got so far. > Also, try something like: > > @echo off > copy %folder%\xxx.txt %sharename% /v > on errorlevel 0 goto next2 > > rem Didn't work > goto bombed > > :next2 > rem more commands > goto done > > :bombed > echo HELP, Didn't work! > pause > exit > > :done > echo All done successfully! > pause > exit > > > > Michael Boggan wrote: > >>I am trying to right a batch file that copies files from drives on local >>harddrive to directories on a network share then, IF there are no errors, >>deletes the files on the local harddrive. How can I do the delete? I got >>that copy part, but how can I tell it to delete the files only if there > > are > >>no errors? Any ideas? >> >>Thanks, >> >>-------------------------------------------- >>Michael Boggan, Network Eng/Citrix Admin >>Virtual Desktop Inc. >>Dallas, Tx >>ph. (972) 960.6400 >>f. (972) 960.6445 >>email. mboggan@xxxxxxxxxxx >>-------------------------------------------- > > --------------------------------------------------------------------------- > George Yobst, Library Technology Analyst phone: 503.723.4890 > Library Information Network of Clackamas County fax: 503.794.8238 > 16239 SE McLoughlin Blvd, Suite 208 web: http://www.lincc.lib.or.us > Oak Grove, OR 97267-4654 email: george@xxxxxxxxxxxxxxx > "...it is impossible for anyone to begin to learn > what he thinks he already knows." - Epictetus *********************************************** This Weeks Sponsor: 99point9.com The 99Point9.com Online Tech Support Helpdesk is the one-stop solution for all your server-based computing needs. http://www.99point9.com ************************************************ For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link. http://thethin.net/citrixlist.cfm