Solved

help with perl script

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

864 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now