Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.

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.M2

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |