• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 510
  • Last Modified:

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
0
rgb192
Asked:
rgb192
1 Solution
 
markdmacCommented:
0
 
johnb6767Commented:
Should usually depend on what the scripts are doing......
0
 
QlemoDeveloperCommented:
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
 
QlemoDeveloperCommented:
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
 
QlemoDeveloperCommented:
The PHP code itself is terminating. There is nothing in the .cmd which could stop it from working.
0
 
rgb192Author Commented:
thanks
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now