how to "see" DOS errorlevel codes?
- From: "Rossman123" <Ross.Landis@xxxxxxxxx>
- Date: 15 Jan 2007 09:17:30 -0800
The xcopy command in DOS returns the following codes on
error/success...
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.
How can I find out what code was returned, after I do an xcopy using
the Perl system command?
My code looks like this:
system ("xcopy /E /Y /F /I /D $source $destination");
Many thanks...
.
- Follow-Ups:
- Re: how to "see" DOS errorlevel codes?
- From: J. Gleixner
- Re: how to "see" DOS errorlevel codes?
- From: Purl Gurl
- Re: how to "see" DOS errorlevel codes?
- Prev by Date: Re: Issue with CGI module and hidden fields
- Next by Date: Re: Issue with CGI module and hidden fields
- Previous by thread: Any module for gathering system statistics?
- Next by thread: Re: how to "see" DOS errorlevel codes?
- Index(es):
Relevant Pages
|