Solved

help with perl script

Posted on 2013-10-24
2
318 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

734 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