PRB: SSI #exec Directive Does Not Support Embedded Quotes

ID: Q226506


The information in this article applies to:
  • Microsoft Internet Information Server versions 3.0, 4.0


SYMPTOMS

If you are using Server Side Include (SSI) files that use the #exec directive on your Internet Information Server (IIS) server, you will not be able to include quotes in the command you are trying to execute. For example, the following line will not work as expected:


<!-- #exec cmd="del "a long filename.txt"" --> 
The command above will execute as if "del " was the entered command. Everything after the second quote will be ignored.


CAUSE

The Server Side Include parser is not sophisticated enough to support a mechanism for passing quotes within the quotes for the #exec command.


STATUS

This behavior is by design.


REFERENCES

For more information on the #exec directive and Server Side Includes, see the online documentation for Internet Information Server.

Additional query words: stm, shtm, shtml

Keywords : kbhttp kbInternet kbGrpInetServer
Version : winnt:3.0,4.0
Platform : winnt
Issue type : kbprb


Last Reviewed: April 19, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.