Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Directory recursively copy

by sflitman (Hermit)
on Jun 08, 2010 at 05:35 UTC ( #843618=note: print w/ replies, xml ) Need Help??


in reply to Directory recursively copy

If you run dircopy again, you will probably overwrite files, similar to rsync but without the smartness. There is a flag you can set locally to determine if target files should be removed, but I suspect there may be problems on a non-POSIX setup like Windows.

I think the best way to handle this on Windows is probably xcopy, which you can call in a shell using backticks or system.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx

As St. Larry says, be lazy, don't reinvent the wheel!

HTH,
SSF


Comment on Re: Directory recursively copy
Replies are listed 'Best First'.
Re^2: Directory recursively copy
by mhoang (Novice) on Jun 09, 2010 at 03:47 UTC
    all right, thank you all cowboys!! :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://843618]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2015-07-30 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls