Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 86,251 VB Programmers. There are 2,137 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a VB Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

Making 12 sequential directories in Windows

 
Reply to this topicStart new topic

Making 12 sequential directories in Windows

Chuckw2
post 9 May, 2008 - 04:43 AM
Post #1


New D.I.C Head

*
Joined: 9 May, 2008
Posts: 2



Hi, I want to start out by saying that I know almost nothing about Batch Files, Visual basic or Programing. I am working on a Dell laptop computer running Windows XP2000.I need quite often to make 12 folders (directories) that are the same except for a sequence number. Example:Wk1, Wk2, Etc.Month1, Month 2, etc. I do not know if this can be done in a batch file or a small Visual Basic file I could execute. I know that I can make the dir in a batch file if I type it all out. Problem in the Name of the file (wk) in my example is always changing.


x=1

MD (name I want), "x"
x=x+1

Loop 12 times
exit


This way when I needed a new name I could go into the program an just change the name.

I have asked all around and cannot find any help, I'm in my 70's and all my friends have computers but none know anything about programing.

If I get an answer do I search for my topic heading or will it come e-mail

Thanks
Chuck


I hope there is a way to do this.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Zhalix
post 9 May, 2008 - 05:17 AM
Post #2


New D.I.C Head

*
Joined: 7 May, 2008
Posts: 35

Make a textbox and name it anything you want. For the sake of this example I'll name it txtName. What I would do in your situation is this:

CODE

For i = 1 to 12
    MkDir "directorypath" & "\" & txtName.Text & i
Next i



I hope I understood your problem correctly and helped.. if not.. oh well?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Chuckw2
post 9 May, 2008 - 02:57 PM
Post #3


New D.I.C Head

*
Joined: 9 May, 2008
Posts: 2

Thanks for the help
Chuck
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Zhalix
post 9 May, 2008 - 03:07 PM
Post #4


New D.I.C Head

*
Joined: 7 May, 2008
Posts: 35

biggrin.gif No problem.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/16/08 08:58AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month