in reply to Re: How to sync a UNC path to a USB memory stick in Windows?
in thread How to sync a UNC path to a USB memory stick in Windows?

Hey, buddy, thanks for replying!

OK, I'll have to play with File::Find and see if it will take UNC arguments. Also, if File::Find will, then would it be logical to assume File::Copy would, too? And doesn't File::Copy have a recursive add-on?

I happen to be home right now and I got to poking around on my laptop, and whatddya know, someone has written a perl script that maps drives when you're away from the office. Seems fairly simple in that it uses 'net use.' So I may look into that as well.

Thanks again,

J

UPDATE: Also File::Repl looks interesting and appears to work with UNCs.

_________________________________________________________________________________

I like computer programming because it's like Legos for the mind.

  • Comment on Re^2: How to sync a UNC path to a USB memory stick in Windows?

Replies are listed 'Best First'.
Re^3: How to sync a UNC path to a USB memory stick in Windows?
by roboticus (Chancellor) on May 31, 2006 at 02:47 UTC
    I think File::Copy handles UNC paths. (In the cygwin perl (the one I use) I believe that filename resolution is ultimately passed on to the OS, so it has access to all the files the OS does.)

    I don't know about the recursive add-on, but I figure while you're doing your File::Find, your original routine has access to the full path of the filename. Given that, you could copy it over to the destination device.

    --roboticus