suryatry26 Posted June 24, 2014 Share Posted June 24, 2014 how to create the folders with name. i need to create one new folder with "Testing" name.And inside of that Testing folder i need to create "Done" & "Query" (2 Folders)using Bat.is it possible? Quote Link to comment Share on other sites More sharing options...
MSasu Posted June 24, 2014 Share Posted June 24, 2014 You will need to use the DOS command MD (Make Directory). Don't forget that should add a structure one level at a time. Use quotes for path if you want to include spaces. MD "C:\Testing" MD "C:\Testing\Done" Quote Link to comment Share on other sites More sharing options...
suryatry26 Posted June 24, 2014 Author Share Posted June 24, 2014 MSasu working great.. I need without path. this folder need to create with Bat file available path. so where ever I want I can easily copy this bat and I can create the folders. Quote Link to comment Share on other sites More sharing options...
MSasu Posted June 24, 2014 Share Posted June 24, 2014 I need without path This will create the structure of folders in current location (that it, where BAT file is executed): MD "Testing" MD "Testing\Done" Quote Link to comment Share on other sites More sharing options...
BIGAL Posted June 25, 2014 Share Posted June 25, 2014 Here is another example we make around 10 work directories in one go just repeating the lines, you can run the .bat with variables MDP jobno worker this would be in BAT file %1 is jobno, %2 is worker. MD %1 CD %1 MD %2. p: cd\ md 2013150 cd 2013150 md Design md Letters md Survey md Photos md DBYD cd DBYD md Telstra md Powercor md Gas md others cd P:\ repeat above now....... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.