There's more than one way to do things | |
PerlMonks |
Re: Copy from the curent directory to...by tachyon (Chancellor) |
on Dec 30, 2003 at 00:24 UTC ( [id://317592]=note: print w/replies, xml ) | Need Help?? |
You are kidding right? Try this (you type it at the command prompt - Start|Run|cmd.exe):
So to do it just type (say this) at the command prompt:
The DOT dir is the current dir and * is a wildcard that matches anything so .\*.jpg means match anything in the current directory that ends in .jpg. You can call shell from perl like this using backtics
NOTE you need 2 backslashes everyhwere you want a single backslash because of the special nature of the \ char in strings ie \n is a newline and \\ is a literal backslash. You can also use the File::Copy module which has the advantage of working across operating systems although somehow I don't see that as a likely issue for you. <code> cheers tachyon
In Section
Seekers of Perl Wisdom
|
|