nsfholic Posted November 17, 2013 Share Posted November 17, 2013 (edited) Hi guys,I want to make *.txt files named after the all the folders in current directoyI need 10 *.txt files from 10 folders' names.but this scripet only makes one from its parent folder name, which is absolutely not needed :unsure:@echo offfor %%* in (.) do type NUL > %%~n*.txtanyone good at batch script? :) Edited November 17, 2013 by nsfholic Quote Link to comment Share on other sites More sharing options...
rach Posted November 17, 2013 Share Posted November 17, 2013 @echo offfor /r %%* in (.) do type NUL > %%~n*.txtI just added /r to your script, it works but still include the parent folder :) Quote Link to comment Share on other sites More sharing options...
nsfholic Posted November 17, 2013 Author Share Posted November 17, 2013 good enough for me to usethank you so much rach ! :D 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.