Computing.Net > Forums > Programming > Batch to create folder name from

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch to create folder name from

Reply to Message Icon

Name: scheah
Date: November 12, 2006 at 10:03:21 Pacific
OS: Win2k3
CPU/Ram: P4
Product: HP/Microsoft
Comment:

Hi,
how do I write a batch that reads text from a file and create a folder with the text as the folder name? Appreciate any reponses.

Kelvin



Sponsored Link
Ads by Google

Response Number 1
Name: tonysathre
Date: November 12, 2006 at 12:01:01 Pacific
Reply:

@echo off

for /f %%i in (file.txt) do mkdir %%i


0

Response Number 2
Name: scheah
Date: November 12, 2006 at 13:25:44 Pacific
Reply:

yes it works! Thanks Tony.


0

Response Number 3
Name: tonysathre
Date: November 14, 2006 at 18:45:17 Pacific
Reply:

Glad I could help. ;-)

"Computer security." — Oxymoron


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch to create folder name from

VBscripting to create folders www.computing.net/answers/programming/vbscripting-to-create-folders/13391.html

Batch file, creating folders & FTP www.computing.net/answers/programming/batch-file-creating-folders-ftp/18448.html

Batch to apend Folder name to filenames www.computing.net/answers/programming/batch-to-apend-folder-name-to-filenames/19038.html