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
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Should usually depend on what the scripts are doing......
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
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).
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

rgb192Author Commented:
@echo off
@echo ------------------------------------
@echo Script will die in 29-43 seconds
@echo ------------------------------------
"C:\Program Files (x86)\NuSphere\PhpED\php5\php.exe" "D:\file.php"
goto loop
echo Executed Sucessful...  
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
This is a endless loop, how can that batch ever be terminated (besides using Ctrl-C or Ctrl-Break)?
rgb192Author Commented:
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
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
The PHP code itself is terminating. There is nothing in the .cmd which could stop it from working.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rgb192Author Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.