Script for copy one source file and rename it, multiple times
- or -
Post a project like this1693
$116
- Posted:
- Proposals: 12
- Remote
- #2494168
- Awarded
Virtual Assistant, Excel programmer, Customer Support Agent, EN-GR/GR-EN Translator
Kornos
Python | Web Scraping | Software development | API Development | Data Mining | Automation
Rajkot
Photo editting,PDF conversion,fillable PDF form,PDF editting,Typing,Data entry,MS word,Mail merge,Scanning document,copy past,Document Conversion
New Delhi
515826351470745411141844814297131449433174798421181872195169279233428679972911143
Description
Experience Level: Entry
Estimated project duration: 1 day or less
Script for copy one source file and rename it, multiple times , based on list in a CSV file.
I need a script, for bulk execution of copy and rename of one source file. Can be a .bat file or similar.
The real case is as following:
I have a list of article numbers in a semicolon separeted CSV file. I have a pdf source file. I want to copy the source file, with a new file name, taken from the csv file. The script must loop through all records and stop executing after last record in csv file. So in the end, when script is executed, I will end up with excatly the same number of files as records in the csv file.
Editable variables in script:
- Path to master file
- Path to csv file
- Path to output folder
- Specifiy extension of target file. (pdf/txt/xls etc). Eg. if file name from csv file is "TargetFile", and specifiy extension is "pdf", then the copied filename will be named "TargetFile.pdf"
Eg.
Source file:
SourceFile.pdf
csv filename: theFileNameList.csv
list/records inside CSV file:
TargetFile1
TargetFile2
TargetFile3
TargetFile4
Output:(the renamed source file):
TargetFile1.pdf
TargetFile2.pdf
TargetFile3.pdf
TargetFile4.pdf
I need a script, for bulk execution of copy and rename of one source file. Can be a .bat file or similar.
The real case is as following:
I have a list of article numbers in a semicolon separeted CSV file. I have a pdf source file. I want to copy the source file, with a new file name, taken from the csv file. The script must loop through all records and stop executing after last record in csv file. So in the end, when script is executed, I will end up with excatly the same number of files as records in the csv file.
Editable variables in script:
- Path to master file
- Path to csv file
- Path to output folder
- Specifiy extension of target file. (pdf/txt/xls etc). Eg. if file name from csv file is "TargetFile", and specifiy extension is "pdf", then the copied filename will be named "TargetFile.pdf"
Eg.
Source file:
SourceFile.pdf
csv filename: theFileNameList.csv
list/records inside CSV file:
TargetFile1
TargetFile2
TargetFile3
TargetFile4
Output:(the renamed source file):
TargetFile1.pdf
TargetFile2.pdf
TargetFile3.pdf
TargetFile4.pdf
Marius A.
100% (8)Projects Completed
6
Freelancers worked with
6
Projects awarded
100%
Last project
22 Mar 2022
Norway
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies