Computing.Net > Forums > Programming > Creating a new folder tree

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.

Creating a new folder tree

Reply to Message Icon

Name: toffeemilkshake
Date: August 17, 2009 at 05:41:42 Pacific
OS: Windows XP Pro SP3
Product: Microsoft Small business server 2003 - 20-user (license only)
Subcategory: Batch
Comment:

I want to be able to create a new set of folders,
including subfolders, that also automatically
insert file templates into some of the folders.

At the same time I want a folder created in a
seperate location and a shortcut to this placed in the first location.

A prompt to enter the name of the main folder
would also be useful.

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: xterm11
Date: August 17, 2009 at 06:42:34 Pacific
Reply:

@echo off
set /p mf=Main Folder Name:

set mfl=(Where you want the main folder)
set ofl=(Where you want the other folder)
set ftl=(location of file template)

md %mfl%\%mf%\Subfolder
copy %ftl%\%mf%\Subfolder\
md %ofl%\OtherFolder
echo explorer.exe %ofl%\OtherFolder>%mfl%\%mf%\link.bat

There are no stupid questions, just stupid people.


0

Response Number 2
Name: toffeemilkshake
Date: August 17, 2009 at 07:48:47 Pacific
Reply:

Thanks! That's what I was after!


0

Response Number 3
Name: xterm11
Date: August 17, 2009 at 07:54:10 Pacific
Reply:

No problem.

There are no stupid questions, just stupid people.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







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: Creating a new folder tree

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

create a new folder in Home drives www.computing.net/answers/programming/create-a-new-folder-in-home-drives/18304.html

how to creat a NEW .dat file in C? www.computing.net/answers/programming/how-to-creat-a-new-dat-file-in-c/4558.html