Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

help with perl script

Posted on 2013-10-24
2
Medium Priority
?
321 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 1500 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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

New style of hardware planning for Microsoft Exchange server.
How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
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

721 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