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 file help
Name: martymix Date: January 7, 2006 at 09:58:10 Pacific OS: winxpsp2 CPU/Ram: 512
Comment:
Hi Could anyone help me figure this out?
I’m trying to create a batch file that will go to the C:\ drive and search for the last folder created (e.g SU550)
Name: Mechanix2Go Date: January 7, 2006 at 19:37:30 Pacific
Reply:
This may work to create sequentially numbered dirs in the root. Not sure what you need to do beyond that.
::=== SEQdir#.bat c: cd \ for /f %%D in ('dir /od/ad/b') do set newest=%%D set pre=%newest:~0,2% set /a num=%newest:~2,3% set /a num+=1 md %pre%%num% :: DONE
If at first you don't succeed, you're about average.
M2
0
Response Number 2
Name: martymix Date: January 8, 2006 at 04:52:23 Pacific
Summary: Thanks for the help. :) I didnt know about the /Q command , but I'll give it a try in a few min. I'm still green with batch files , but they seem to be not to bad to manage once you get it down. Than...
Summary: If anyone can help I would appreciate it. I have a load of files that I want to rename using a batch file (don't mind what language) Files are in format of index.1345 and I want t...
Summary: Mechanix2, I need some help creating an advanced ping batch file. What the batch file would do is this. A batch file running on server A would continously ping server B, when 10 pings (user definable)...