rgb192
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
i am finding that .bat file will run a couple seconds longer
but .cmd file times out and stops after 29-43 seconds
http://support.microsoft.com/kb/555375
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).
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...
@echo --------------------------
@echo Script will die in 29-43 seconds
@echo --------------------------
:loop
"C:\Program Files (x86)\NuSphere\PhpED\php5\
goto loop
echo Executed Sucessful...
This is a endless loop, how can that batch ever be terminated (besides using Ctrl-C or Ctrl-Break)?
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
also is there a way to modify .cmd file so php file does not die in 29-43 seconds
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks