CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
File/Dir Copy: Take paths from text file and copy to another location

 



fivetoolz
New User

May 27, 2009, 5:52 PM

Post #1 of 2 (2588 views)
File/Dir Copy: Take paths from text file and copy to another location Can't Post

Hi All,

I'm an extreme noob to Perl. I'm trying to find a script that will read a text file (notepad) that contains several paths to directories and files, and make a copy of the directories and files to another network share. I've searched CPAN, but the closest thing I was able to find is Win32:FileOp. Does anyone know if this is even possible to do? Thanks in advance!

Regards,
fivetoolz


vikas.deep
User

May 27, 2009, 11:43 PM

Post #2 of 2 (2577 views)
Re: [fivetoolz] File/Dir Copy: Take paths from text file and copy to another location [In reply to] Can't Post

The same problem has kept another thread burning. Just go through the previous thread in this very section Kevin has suggested two modules and mkdir() command there. After his and Fishmonger's post I tried to solve the (similar) problem. I am trying to use the following

Code
use File::CheckTree;  
use File::Copy;
mkdir ("newfold");
move ("/root/Documents/$new1[$index]","/root/Documents/newfold");

If you go through the previous thread may be you can understand the above said better.This was actually someone else's problem and I just stepped in.
So now we three are collectively waiting for a solution.

Quote
-For all my suggestions " I am sure someone else can do it in a better or elegant manner!"

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives