Solved

Cannot run my exe in shtml files ?

Posted on 2004-08-11
7
455 Views
Last Modified: 2011-09-20
I create an shtml file with the followings SSI commands

<!--#config cmdecho="ON" -->
<!--exec cmd="ping 127.0.0.1" -->
<!--exec cmd="temp.exe" -->
( temp.exe is an self-written exe files )

The browser returns

  Invalid SSI Tag
  The CMD option is not enabled for #EXEC calls

Have I missed something to set up ?
Please help

Barry
0
Comment
Question by:barrytwy
  • 3
  • 2
7 Comments
 
LVL 2

Expert Comment

by:Joakim_
ID: 11772399
You must use this to run EXE-files:
<!--#exec cmd="Path_to_file With_params" -->

For more information, you should probably read this article: http://www.ssi-developer.net/ssi/ssi-exec.shtml
0
 
LVL 2

Expert Comment

by:Joakim_
ID: 11772427
I don't know much about SSI, but to me, it looks like you forgot the "#"s.
0
 
LVL 15

Expert Comment

by:Thogek
ID: 11775113
Sounds like the system account used by the web server may need to have administrative access (or, at least, execute permissions) on the web server in order to run some commands via a exec cmd SSI.  (See Note #2 at the bottom of the page whose URL Joakim gave above.)

Keep in mind that use of this exec cmd feature can be dangerous from a security perspective, if you're not very careful as to what commands you allow, who has access to modifying your content, etc.

More at
http://support.microsoft.com/default.aspx?scid=kb;EN-US;203064
http://support.microsoft.com/default.aspx?kbid=233969
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 15

Expert Comment

by:Thogek
ID: 12193219
Has this question been resolved?
0
 
LVL 15

Expert Comment

by:Thogek
ID: 12636759
I doubt that Joakim's comment was the answer, as if it were simply a case of missing "#"s, then the system would not have interpretted the comment tags as SSIs, so no SSI error message would have occurred.  And the question did cite an SSI error message ("Invalid SSI Tag.  The CMD option is not enabled for #EXEC calls") which specifically suggests that EXEC-CMD SSIs have not been enabled for the Web server in question.  (See http://support.microsoft.com/kb/233969)

But, since barrytwy (the Asker) hasn't returned, we can't be sure what's going on from his perspective...
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12672933
PAQed with no points refunded (of 80)

modulo
Community Support Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IFRAME in a ASPX file no longer working 3 27
Change month dropdown 5 35
Blog posts not showing up on Blog page 7 52
Fixing my modal from bootstrap 18 39
Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now