Forum Moderators: coopster & phranque

Message Too Old, No Replies

Remove Execution of a Batch File

want to run a *.bat file from anywhere, remotely

         

esaslo

5:35 am on Jun 18, 2003 (gmt 0)

10+ Year Member



Probably not the ideal place to post this question; nonetheless, it is the only forum who's basis seems to work towards the same programming paradigms.

I have a single batch file, located somewhere on my server (really doesn't matter where). I want to be able to execute that batch file remotely; either, from a webline command, ftp, etc., Any thoughts how I'd do this? There is no possibility of any stacked software; however, if someone knows how to develope a webbased interface to do this, I'd be interested in hearing that as well.

Thanks for your help, all!

DrDoc

6:41 am on Jun 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can do it though you r FTP client. They usually have "execute file" as an option.

Also, you could use a Perl/PHP script to run the file as a system command...

esaslo

1:26 pm on Jun 18, 2003 (gmt 0)

10+ Year Member



Thanks for your reply.

The option of an FTP client is not available; only IE would be available for any type of transport protocol.

Do you have knowledge of a ASP or Perl script which I'd be able to use, and execute from a browser?

Thanks.

DrDoc

5:00 pm on Jun 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I guess you're on a Windows server...

#!C:\path\to\perl.exe
exec('path\to\batch\file.bat');