Computer Newbies forum

General discussion

multiple bat and vbs files

by norm85nz / October 31, 2010 5:39 PM PDT

i am trying to create a new .bat file to run 4 other .bat and .vbs files in an order and i would like to know the code for it. this is the order

run file 1 for 5 seconds then run file 2. end file 2 and start file 3 and 4 together

Discussion is locked
You are posting a reply to: multiple bat and vbs files
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: multiple bat and vbs files
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Re: batch file
by Kees_B Forum moderator / October 31, 2010 6:52 PM PDT

A batch file is just the same as a command prompt. It reads a command, executes it and reads the next command. Moreover, it offers language elements for decisions (IF) and jumps (GOTO), and (those 2 taken together) loops.

Things you can't do from the command prompt (running a file for 5 seconds), run 2 files simultaneously) can't be done from a batch file either. You'll need other tools.

Kees

Collapse -
reply
by norm85nz / October 31, 2010 7:10 PM PDT
In reply to: Re: batch file

ok so is there any way i can put all 4 files to run in an ordeR?without timing or simultaneous?

Collapse -
Re: batchfile
by Kees_B Forum moderator / October 31, 2010 10:17 PM PDT
In reply to: reply

Just make 4 lines. In the right sequence.

Kees

Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

CNET FORUMS TOP DISCUSSION

Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?