Hey FlashGuy,         

My MUA believes you used PMMail 2000 Standard (2.20.2502) For Windows 2000 (5.1.2600;1)
to write the following on Tuesday, September 17, 2002 at 8:00:06 AM.

F> I have a web interface where I'm executing a compiled perl script.
F> Within the perl script I'm trying to execute a DOS command but its
F> not working properly. If I put my command in a batch file and
F> execute the batch file from the perl script it works. I know it's
F> because copy is not a program...it's a function inside the
F> command.com /cmd.exe shell interpreter. That's why it works when
F> it's a batch file...because the batch is implicitly run under the
F> shell interpreter.

F> This is the line in my perl script that is not quite doing what I
F> want it to do. Copy the file.

F> system("command.com copy /C d:\test\input.ps e:\test\output.ps");

First, you could just have Perl do the file copy... Check out
perldoc -m "file::copy"

F> When I run the above line from a DOS command prompt this is the
F> error I get.

F> File not found - D:\TEST\INPUT.PS
F>            0 file(s) copied

This error is coming from the copy command, and is indicating the
file does not exist...

-- 
[EMAIL PROTECTED]
Flying with The Bat! eMail v1.61
Windows 2000 5.0.2195 (Service Pack 2)
The days of the digital watch are numbered.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to