Here is a screen shot to how it is set up in case this helps, this is just a sample of 2 pdfs (but 3 titles in the file.txt) but i have over 290 in the main file, this was just to test. I then put 2 pdfs in there, called "input(0)" "and input(1)" the text file (file.txt) contained the following information:Īnd the script looked like OFF SET "path=C:\New folder\file.txt"įOR /F "tokens=1,*" %%A in (file.txt) DO ( REN "%path%\file%%A.pdf" "%%B.pdf" ) PAUSE EXIT /Bīut when i run it, it says unable to find file?Īll files including the bat, were insiad ethe same folder (c:\new folder) I ran the file with the quick test: I put the file.txt (renamed to file.txt) containing all the names in the following directory: So with this structure this will work, if so, thank you as this will save me such an amount of repeated work that would take weeks and kill my wrists and moral. Then in the same folder i have a txt file called "directory.txt" and inside that text file, is just a page break "press enter" seperated list of names that corrospond exactly to the files.Īnd i just want the name of each file, moved to the corrosponding pdf in the order they are in (so 0.pdf becomes 0 car instructions.pdf" (or the number can be removed i dont mind either way) I have no idea how this works, but i just want to make sure my description has given you the required infirmation as i think some responses were assuming i had a text file, with the name of each pdf, individually stored with each pdf. For instance, the FileName and Directory tags are excluded in the example above to avoid renaming and moving the destination file. The CLI is designed for simple commands that do one thing and do it well. But before i start, am i right in saying this will read the single text file i have (1 text file with 200 names in it in just a list format) and it will just copy the name from the list file and name each pdf with the corrosponding name. FileBot can be called with a set of command-line arguments directly from the console or in scripts for automation, running tasks like renaming TV shows and movies, fetching subtitles or checking SFV files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |