Computing.Net > Forums > Programming > batchfile to create folders from fi

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.

batchfile to create folders from fi

Reply to Message Icon

Name: JoeJedi
Date: October 3, 2008 at 10:56:28 Pacific
OS: XP Pro
CPU/Ram: PIII 900 MHz
Comment:

Hi :) My question: I have very many files and it would be nice if someone knows a simple code to make folders from all files that contains in a directory, (all folders with the same name as there associated files)

Example:
C:\Games\
GameShooting.exe
GameArcadeClassic.exe

(after batch)
C:\Games\
GameShooting.exe
GameArcadeClassic.exe
GameShooting\
GameArcadeClassic\

I would be very thankful.. :)



Sponsored Link
Ads by Google

Response Number 1
Name: astroraptor
Date: October 3, 2008 at 11:11:37 Pacific
Reply:

For /F "delims=." %%n in ('Dir /B *.exe') Do MD %%n


0

Response Number 2
Name: JoeJedi
Date: October 3, 2008 at 11:28:03 Pacific
Reply:

@astroraptor

Hi, thank you very much..! that`s it!

Ok, bye :))


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: batchfile to create folders from fi

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

Create Folders from Partial File Na www.computing.net/answers/programming/create-folders-from-partial-file-na/17924.html

Possible write to dvd-rw from DOS? www.computing.net/answers/programming/possible-write-to-dvdrw-from-dos/12406.html