troubleshooting Question

Batch file to create and copy from paths in a CSV file.

Avatar of Grant_68
Grant_68Flag for Canada asked on
Scripting LanguagesWindows BatchMicrosoft Legacy OS
2 Comments1 Solution517 ViewsLast Modified:
Hello.

I have a CSV file that contains Source path and Destination Path info.  I wish to write a batch file that will use the CSV file to:
1) Create the Destination directory (if it doesn't exist)
2) Physically copy the Source file to the corresponding Destination directory.

Below is a sample of the first few lines of the CSV.

This needs to run on Windows Server 2003.

Thanks in advance.
DESTINATION_PATH_FULL,SOURCE_PATH_FULL
D:\DocsImport\Association Operations\Association Financial and Audit Services,D:\DocsImport\Docsdata\PRIMARY\ONEILL\8701!.DOC
D:\DocsImport\Association Operations\Association Financial and Audit Services,D:\DocsImport\Docsdata\PRIMARY\ONEILL\8801!.DOC
D:\DocsImport\Association Operations\Association Financial and Audit Services,D:\DocsImport\Docsdata\PRIMARY\ONEILL\9901_.XLS
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros