Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

length of time a .cmd or a .bat file can run

on windows server 2008

i am finding that .bat file will run a couple seconds longer

but .cmd file times out and stops after 29-43 seconds
Avatar of markdmac
markdmac
Flag of United States of America image

Avatar of johnb6767
Should usually depend on what the scripts are doing......
Technically, there is no difference between .bat and .cmd. You can take a .bat script, rename it to .cmd, and run it, and it will need the same time and do the same actions as before. The .cmd extension is just used to indicate that the script is using advanced features of the NT family (as opposed to traditional MS-DOS 5/6/7.xx).
Avatar of rgb192

ASKER

@echo off
@echo ------------------------------------
@echo Script will die in 29-43 seconds
@echo ------------------------------------
:loop
"C:\Program Files (x86)\NuSphere\PhpED\php5\php.exe" "D:\file.php"
goto loop
echo Executed Sucessful...  
This is a endless loop, how can that batch ever be terminated (besides using Ctrl-C or Ctrl-Break)?
Avatar of rgb192

ASKER

I want the php file to run once

also is there a way to modify .cmd file so php file does not die in 29-43 seconds
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

thanks