Hi,
don't forget to double '\' inside a "" quoted string.
Regards,
Martin Kellner
Wenjie Wang: 27.08.2003 12:08
system "copy c:\a.txt d:\a.txt";
-
Wenjie Wang(a.k.a. William) [EMAIL PROTECTED]
WANG I
Hi,
doesn't
system "copy c:\\a.txt d:\\";
work?
Regards,
Martin Kellner
Tony Cheung: 27.08.2003 09:51
Hi, everybody
How to execute a command under win98 via perl script? Example: copy
c:\a.txt d:\
Thanks
Hi,
try:
foreach my $sheet (1, 2, 4) {
print "\$sheet = $sheet\n";
}
Regards,
Martin Kellner
|-+--->
| | Beckett Richard-qswi266 |
| | <[EMAIL PROTECTED]> |
|
Hello,
if I hve given a long pathname, for example
C:\Program Files\Active Perl\
and I need the short one using the tilde convention
C:\Progra~1\Active~1\
what's the way to create this one?
Regards,
Martin Kellner
Hello,
thats not exactly the behaviour I wanted. Its a little bit complicated,
because instead
C:\>test_cd.pl
C:/
C:/
c:/temp
C:\>
I want to have
C:\>test_cd.pl
C:/
C:/
c:/temp
C:\temp\>
(using your code as test_cd.pl).
Regards,
Marti
Hi,
did you use
system xcopy /E ...
("Copies directories and subdirectories, including empty ones.")?
Bye,
Martin.
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users