Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remotely executing a dos batch file

Status
Not open for further replies.

wagnj1

Programmer
Jul 21, 2003
154
CA
I need to write a section of php that will execute a dos batch file thats located in my htdocs directory of my webserver...anyone know what the php command(s) are to do this? I am not having any luck finding out how to do this, maybe VBscript would be a better choice for doing this?
 
Have you looked at the "exec()" or "system()" functions?

Ken
 
if there is a time factor to this, consider using cron or scheduled tasks to automate the running of the batch file

Bastien

I wish my computer would do what I want it to do,
instead of what I tell it to do...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top