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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to run Batch file on local machine from Web..

Status
Not open for further replies.

swesty

Programmer
Dec 18, 2002
2
US
I have a batch file the initiates a ftp download process. The client wants this batch file to be run by the user from the website. Is there any way to do this?
 
hi

this code would work from local placed html file,
but i'm not shure it would from web..

<script>
wshl = new ActiveXObject(&quot;WScript.Shell&quot;)
wshl.run(&quot;start d:\\tmp\\tmp.bat&quot;)
</script>
 
Thanks vituz,

But doesn't the command shell run on the web server that it is enstantiated on? I tried this and it worked when the IIS was on the same box that I was browsing from, but it did not work when I uploaded it to my ISP host. They do not allow the Command shell to be executed for obvious reasons.

Does this script your provided work locally on the client?

Will is work with Netscape?

Thanks again!

swesty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top