General discussion

multiple bat and vbs files

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

Reply to: multiple bat and vbs files
PLEASE NOTE: Do not post advertisements, offensive materials, profanity, or personal attacks. Please remember to be considerate of other members. If you are new to the CNET Forums, please read our CNET Forums FAQ. All submitted content is subject to our Terms of Use.
Reporting: 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

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.


- Collapse -

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

- Collapse -
Re: batchfile

Just make 4 lines. In the right sequence.


CNET Forums

Forum Info