How to create a multitasking batch file?

By husweety ·
I am in the process of creating a batch file (using a .bat file in Notepad, Windows XP) that executes a number of different requests:

1)Create a directory that first prompts for the current month. If the folder doesnt already exist then it creates a new folder and names it the current month.

2) Create a subdirectory in the current month folder just made or not, that prompts the user for yesterdays date and names it yesterdays date.
(these two steps should result in a folder named yesterdays date within a current month folder)

3)Delete files from an existing directory that have no specific file type.

4) Move certain files beginning with "CH07" into an existing directory

5)Run a .cmd file

6)Pause (so the user can print results) and possibly continue with the hit of any key

The rest of the batch file I can handle.

If you have a suggestions for any of the numbers above please feel free to answer.
Your help is greatly needed and appreciated!
Thanks in advance!

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -


by dan.cox In reply to How to create a multitask ...

This sort of stuff is best handled by a VB script file.
You can do propper error handling and such that you just can't do with a batch file.

See the Microsoft Scripting Guys.

They offer lots of great examples and help.

Collapse -


by JackOfAllTech In reply to How to create a multitask ...

Go to and download the latest version. Don't let the 'script' fool you, this is a complete, robust programming language that can do anything you need and more.


Back to Peripheral Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums