Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 11th, 2003, 09:44 PM
dak dak is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 1 dak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Running a .exe from Javascript (using ASP & IIS)

This is the code I'm using to run Notepad from Javascript. This works just fine when I run it outside of IIS (just double click on the file). However, when I run through IIS, it gives an error (permission denied).<br><br>I tried setting every IIS security setting to the bare minimum, and selected the option that allows you to run both scripts and executables, but it still won't work.<br><br>Does anyone know the IIS setting(s) that I can change to get this to work?<br>Or is it something built in that I can't change?<br><br>(this is the Javacript script)<br> function executeCommands(inputparms)<br> {<br> // Instantiate the Shell object and invoke its execute method.<br><br> var oShell = new ActiveXObject("Shell.Application");<br><br> var commandtoRun = "c:\windows\Notepad.exe";<br> if (inputparms != "")<br> {<br> var commandParms = document.Form1.filename.value;<br> }<br><br> // Invoke the execute method. <br> oShell.ShellExecute(commandtoRun, commandParms, "", "open", "1");<br> }<br><br>Dak <img border="0" src="/forum/emoticons/jumpin.gif" height="31" width="31" alt="jumpin" />

Reply With Quote
  #2  
Old August 19th, 2003, 05:07 AM
rashmi_may rashmi_may is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 rashmi_may User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up IIS Settings

In the Browser Settings select on
Tools - Internet options- Security-Custom level then under this
"select Initialize and script Activex controls not marked safe" and click on enable button , with this u will not get permission denied error.

Can u do me one more favour , can u please send me the vb code to read this command line arguments.

regards,
rashmi

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > Running a .exe from Javascript (using ASP & IIS)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT