hidden hit counter
Welcome to WindowsForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Help with Batch File for creating subfolders

 
   Windows XP (Home) -> Windows XP Arch -> Help & Support Arch1 RSS
Next:  Blocked sender  
Author Message




User: inactive
Posts:



(Msg. 1) Posted: Sun May 29, 2005 1:50 pm
Post subject: Help with Batch File for creating subfolders

Hello,
I am trying to write a batch file that will create subfolders based on the name of the parent folder (I'm running windows xp). So if the folder that I am working in is named "dg2001-10-19" then I want the batch file to create 3 subfolders named "dg2001-10-19 - WTA", "dg2001-10-19 - BHMM" and "dg2001-10-19 - files". In the other folders that I am working in I want it to work the same way - for a folder named "disc" it would create "disc - WTA", "disc - BHMM" and "disc - files" and place them in the disc folder.

If anyone can help me I would really appreciate it. I realize that this is probably a simple thing but I am not very familiar with programming or batch files. Thank you very much for your help.

 >> Stay informed about: Help with Batch File for creating subfolders 
Back to top
Login to vote




User: inactive
Posts:



(Msg. 2) Posted: Wed Jun 08, 2005 3:46 pm
Post subject: Re: Help with Batch File for creating subfolders

Here ya go, copy and paste.


Code:
@echo off

:set PWD variable to current directory
set PWD=%cd%

:make the new directories using PWD variable
mkdir "%PWD% - WTA"
mkdir "%PWD% - BHMM"
mkdir "%PWD% - files"

echo Directory creation complete.



Buggy

 >> Stay informed about: Help with Batch File for creating subfolders 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Batch file to call multiple remote desktops - I have a question for the batch gurus. I'm trying to create a batch file that will open up multiple remote desktop connections. Here is what it looks like. Here is the problem I am having though. It will open up the first one and will not open them..

Help w/ creating cd/dvd for backup files - ok so i've backed up my files and folders and its pretty big since its the first time i backed up my computer. i have the backup file on my desktop so how do i burn it to dvd or cd. I plan on doing a full system restore so i have to do this first b4 i...

printing multiple files using batch files - I have just disovered that it is posible to create a bach file (.bat) that will allow me to print the multiple documents in one go. Can anyone tell me how to do it? I tried using the "PRINT" followed by the printer share path and the path to th...

help file - My Explorer help files will not open___also system tools\system info refuses to open__help for this please {XP pro os} With Kind Regards From WillofAustralia

what is a SKF file - I have files on my computor called SKF , which I cannot open , why can't I open these?
   Windows XP (Home) -> Windows XP Arch -> Help & Support Arch1 All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
  Windows XP
 Win 2000/NT/98/ME
 Windows Vista!


[ Contact us | Terms of Service/Privacy Policy ]