Saved Bookmarks
| 1. |
Solve : Batch file to copy, rename and organize files from a CD to a HD? |
|
Answer» HELLO everybody, My name is Antoine, I'm new on this forum. I'm trying to DEVELOP the following batch file : My point : As a private pilot, I get every month a CD-ROM with updated information in PDF format (approach plates, rules, airport information, etc.), spread in various files and directories. The way these data are organized and named on that CD doesn't totally fit my needs, thus I would like to automatically transfer chosen data from the CD-ROM to my HD (E:\) in dedicated directories and with a completed name. For instance, airport visual approach plate files are identified on the CD-ROM with a long name containing amongst others the 4 letters of airport's ICAO name (eg LSZH). I would like the file's name to be automatically completed with the city name (eg ZURICH LSZH). Airports LIST is finished and I would fill up a conversion table for the name completion, either inside the batch file, or ideally in a separate text file. Depending on the PDF's file name, one can also find out what kind of information it contains and therefore in which directory to transfer it. For instance, visual approach charts PDFs name contain also the word "VAC", and I would transfer such files into a VAC folder on my HD. Currently I'm doing this job manually, but it's typically something that could (and should) be automated. I have very little experience with batch files, and didn't find out so far how to do it, especially check and modify long file names and how to create/work with a conversion table. How would you proceed to create such a batch file ? Is there a way doing it, or should I TURN towards another language ? Would anybody be nice enough to help me ? Thanks a lot in advance. Best regards Antoine My system : windows 7 64 How many places did you ask this question? I've seen two... and I don't want to waste my time if some people are doing work on your behalf in another forum.2 places only, yet...This point has been solved by foxidrive in another forum. For those who are interested in the solution, it's over there. A real big thank you to foxidrive for his very efficient support, and all my appologizes for any inconvenience - the goal was not to draw competition between fora... Best regards Antoine |
|