Computing.Net > Forums > Programming > create a new folder in Home drives

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.

create a new folder in Home drives

Reply to Message Icon

Name: Jas999
Date: March 19, 2009 at 20:14:44 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: March 19, 2009 at 21:57:05 Pacific
Reply:

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


0
Reply to Message Icon

Related Posts

See More


VBA Access 2003 Connecting MySQL using Py...



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: create a new folder in Home drives

create a new folder www.computing.net/answers/programming/create-a-new-folder/18281.html

Creating a new folder tree www.computing.net/answers/programming/creating-a-new-folder-tree/19835.html

batch folder rename help www.computing.net/answers/programming/batch-folder-rename-help/15727.html