craiganderson Posted January 18, 2015 Share Posted January 18, 2015 Greetings. So lets say I have 3000 rom files (these happen to be zipped but doesnt matter) and what I need to do is create a .txt file matching the name of each individual rom/zip file. I can do it one by one but ..ouch! So in Summary: I have this game1.zip game2.zip ... game3000.zip and I need game1.txt game2.txt ... game3000.txt Is there any automated way to do this? Link to comment Share on other sites More sharing options...
craiganderson Posted January 18, 2015 Author Share Posted January 18, 2015 thanks. i do not know how to do that. but i appreciate the reply Link to comment Share on other sites More sharing options...
dougan78 Posted January 18, 2015 Share Posted January 18, 2015 for /F %f in ('dir *.* /b') do echo. 2>"%f.txt" Now this will give you a empty text file that is game.zip.txt use Bulk Rename to remove the .zip and good to go. Cheers. Only take you a couple of minutes. Oh and if filez have replace the space with underscore with bulkrename. Dos doesnt like spaces. Link to comment Share on other sites More sharing options...
craiganderson Posted January 18, 2015 Author Share Posted January 18, 2015 thank you i do this in command prompt? sorry for basic question Link to comment Share on other sites More sharing options...
dougan78 Posted January 18, 2015 Share Posted January 18, 2015 Yes. Windows+R. cmd click open. Then you need to switch to the folder you have the zip files cd s:\craigs\files\arein_here\ then run the command assuming you have no spaces. I always forget not everyone knows dos Link to comment Share on other sites More sharing options...
Inquisitom Posted January 18, 2015 Share Posted January 18, 2015 In a cmd prompt in the directory where the files are, simply type: ren *.zip *.txt Link to comment Share on other sites More sharing options...
boohiss Posted January 18, 2015 Share Posted January 18, 2015 If you don't want to do it manually, I've used this plenty of times to create a text file containing all files inside: http://www.xptsp.com/fixit/contentlist.php You just plop the exe file inside whatever folder you want it to list and it creates a txt file. It won't alphabetize it correctly sometimes, but that's not a problem since there's a million ways to do that. I'm lazy and just use the first google hit for an online way to do it . Link to comment Share on other sites More sharing options...
dougan78 Posted January 18, 2015 Share Posted January 18, 2015 If you don't want to do it manually, I've used this plenty of times to create a text file containing all files inside:http://www.xptsp.com/fixit/contentlist.php You just plop the exe file inside whatever folder you want it to list and it creates a txt file. It won't alphabetize it correctly sometimes, but that's not a problem since there's a million ways to do that. I'm lazy and just use the first google hit for an online way to do it . He wants individual txt files named after zip files. This program does a txt file with a list of the files in it. Different than what he wants. Link to comment Share on other sites More sharing options...
craiganderson Posted January 18, 2015 Author Share Posted January 18, 2015 Link to comment Share on other sites More sharing options...
andyco40 Posted January 18, 2015 Share Posted January 18, 2015 try this mate a batch renamer http://code.google.com/p/batch-file-extension-renamer/ Link to comment Share on other sites More sharing options...
craiganderson Posted January 18, 2015 Author Share Posted January 18, 2015 try this mate a batch renamer http://code.google.com/p/batch-file-extension-renamer/ i tried something like that thanks but the size of the file stays the same.....(ie contents stay in .txt file) Link to comment Share on other sites More sharing options...
craiganderson Posted January 19, 2015 Author Share Posted January 19, 2015 edit ... thanks it worked what i did 1) replaced spaces with _ using bulk renamer 2) used dougan78 command line 3) used bulk renamer to remove .zip from new name (because it was in name.,..like.....gamea.zip.txt) 4) used bulk renamer to replace _ with spaces thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.