Wednesday, May 30, 2018

Create multiple folders with text file inside in Windows XP

I'm trying to create 1000 folders each with a single text file inside
eg
C:...\Customer1\Customer1.txt
C:...\Customer2\Customer2.txt
C:...\Customer3\Customer3.txt
.
.
.
etc to 1000


I can create a single folder and file with command prompt:


cd C:\Documents and Settings\All Users\Desktop\1000 folders
md Customer1
echo.>Customer1\Customer1.txt


I'm just not sure how to duplicate this without manually typing out 1000 folder names... how would I do this? with a batch file?

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...