• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Batch file help

DnetMHZ

Diamond Member
I'm a little rusty on my batch file syntax.

I have a drive with about 700 top level directories and I want to create the same empty subdirectory under each one.

example:
I have
x:\dir1
x:\dir2
x:\dir3

under each one I want to create a directory like this:

x:\dir1\test
x:\dir2\test
x:\dir3\test


thanks in advance

DnetMHZ
 
Edit: Everything in code looked really bad

Change the "echo" to "mkdir" if you like the way the output looks after initial run. Initial run with code as-is will simply output what the directory structure would look like.

Note: When adding this to a batch file, make sure to change the %i to %%i or it will not function. This is a /for requirement only.
 
Back
Top