create a new folder in Home drives

March 19, 2009 at 20:14:44
Specs: Windows XP
Hi.. I want to create a new folder with the name of work under all of my users home drive. Please help me. I am not so comforatable with the programming so please give me the whole command. it can be vbs or batch file.

See More: create a new folder in Home drives

Report •

March 19, 2009 at 21:57:05
Assuming you have a default installation and you users are in:

C:\Documents and Settings

:: make a WORK directory for each user

@echo off & setLocal EnableDelayedExpansion

pushd "C:\Documents and Settings"

for /f "tokens=* delims= " %%a in ('dir/b/ad') do (
md "%%a\work"

If at first you don't succeed, you're about average.


Report •
Related Solutions

Ask Question