Solved

help with perl script

Posted on 2013-10-24
2
316 Views
Last Modified: 2013-10-24
Hello,

Company I work for has a call center, and we record every call.  I need to transfer some of those calls to a different directory.  Everyday I am given the name of the files and path they are located in. What I would like to do is maybe have a txt file with path and the filename. Then run a perl script where it looks for the txt file, finds the files and copies them over to destination folder. Please help with writing a perl script that will be able to do that

THanks
0
Comment
Question by:iamaidiot
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 53

Accepted Solution

by:
Will Szymkowski earned 500 total points
ID: 39598182
Why not simply use a robo copy batch job to accomplish this? You could even do a "mirror" which will replicate anything into your source folder to the destination folder.

Example below...
robocopy <source> <destination> /MIR /W:20 /R:15 /LOG: \\servername\share\
robocopy "E:\test" \\server\public\test\ /MIR /W:20 /R:15 /LOG: \\server\public\logs

You can also use different switches if you like but it seems like a mirroring would be most suiteable for your situation.


Robocopy Switch parameters - http://technet.microsoft.com/en-us/library/cc733145.aspx


Will.
0
 

Author Closing Comment

by:iamaidiot
ID: 39598437
THank you
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Utilizing an array to gracefully append to a list of EmailAddresses
In-place Upgrading Dirsync to Azure AD Connect
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
This video discusses moving either the default database or any database to a new volume.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question