-----Original Message-----
From: Messenger, Mark [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 3:29 PM
To: 'John Deretich'; Perl-Win32-Admin-Request (E-mail)
Subject: RE: copying filesEither enclose the filenames in double quotes:
system("copy \"$sourcefile\" \"$destdir\" ");
or use Win32API::File as so:
use Win32API::File;
Win32API::File::CopyFile("$sourcefilename","$destfilenamewithdir",0);
The latter could be faster, especially for large numbers of small files.
-----Original Message-----
From: John Deretich [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 16, 2003 3:28 PM
To: Perl-Win32-Admin-Request (E-mail)
Subject: copying files
Hi, I was just wonder if
anyone has a solution to this problem.I am trying copy a set of files into a directory.
The directory has spaces in it's name.For example, z - test - test. But
when I try to copying the filenames
in using system("copy $copyfile") command,
I am getting the following error : "The system cannot find the file
specified".
Any ideas?thanks,
John
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Title: RE: copying files
Awesome, system("copy \"$copyfile\"
\"$directoryexists\" ");
worked
great.
Thanks!!!!!!
John
:)
- copying files John Deretich
- RE: copying files Messenger, Mark
- John Deretich
