Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9226991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:57:38+00:00 2026-06-18T04:57:38+00:00

I have 80 Php scripts that I want to run. I want to Start

  • 0

I have 80 Php scripts that I want to run. I want to Start Script1 wait until its finish starts script2 …

Now, if I add the following :

start C:\xampp\php\php.exe -f C:\xampp\Script1.php
start C:\xampp\php\php.exe -f C:\xampp\Script2.php
start C:\xampp\php\php.exe -f C:\xampp\Script3.php

When I execute my Batch file it will run all scripts at the same time.

Is there any command I could use in my bat file to tell the system wait until script is done then execute the one after?
Anyway to set a time interval between scripts ?

I could run all 80 scripts in the cron tab, However, Id rather configure one batch file to handle all the scripts then assign this file to the crontab.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:57:39+00:00Added an answer on June 18, 2026 at 4:57 am

    start fires off the tasks asynchronously, thus they will all run at the same time. Use the /wait flag to start the task and wait for it to complete.

    e.g.

    start /wait C:\xampp\php\php.exe -f C:\xampp\Script1.php
    start /wait C:\xampp\php\php.exe -f C:\xampp\Script2.php
    start /wait C:\xampp\php\php.exe -f C:\xampp\Script3.php
    

    Alternately, as Marc B states, removing the start call should give you sequential execution as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a series of PHP scripts that I want to run in a
I have php scripts that I have to run on linux as well as
I want to run php or python scripts from eclipse that will create folders
I have some Python scripts that I run on my desktop now for cutting
I have some long-running CLI PHP scripts that run regularly via cron. I'd like
I have 3 scripts that do some stuff. I want to run them continously
I have a php script that is running in CLI and I want to
I have a html_headers.inc.php script that I want to include in every script on
I have an multi-dimensional array that I want to send to a PHP script
I have php scripts that do things like register, login, upload. I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.