You are not logged in.
I'm trying to create multiple text files roughly 1000. I've got a text file with the 1000 names I'd like to use. Is there an easy way in either XP/2K or PHP to create a script or run from the command line in order to batch create these 1000 files?
If I'm not explaining the problem enough, please let me know.
Thanks
Ed
Offline
look at the examples on the for /f page
to create a file you just change the ECHO... to ECHO... >file.txt and use parameters (%%G etc) to change parts of the filename to values from the file
Offline
Simon,
So let's say I want to create five files from the command line. How would it look?
ECHO file.txt %%G name1 name2 name3 name4 name5
Would that give me five unique files in a directory like this:
name1.txt
name2.txt
name3.txt
name4.txt
name5.txt
Ed
Offline
FOR %G IN (ed john erica) DO FSUTIL file createnew %G.txt 10
there it is folks!
Thanks for pointing me in the right direction!
Offline