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
LVL 1
rgb192Asked:
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.

markdmacCommented:
0
johnb6767Commented:
Should usually depend on what the scripts are doing......
0
QlemoBatchelor, 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).
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

rgb192Author Commented:
@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...  
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
This is a endless loop, how can that batch ever be terminated (besides using Ctrl-C or Ctrl-Break)?
0
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
0
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
The PHP code itself is terminating. There is nothing in the .cmd which could stop it from working.
0

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:
thanks
0
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.