<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Launch One Script From Another</title>
	<link>http://www.nilpo.com/2008/01/windows-scripting/launch-one-script-from-another/</link>
	<description>Ask the Windows Guru!</description>
	<pubDate>Sat, 04 Feb 2012 12:05:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Anonymous</title>
		<link>http://www.nilpo.com/2008/01/windows-scripting/launch-one-script-from-another/#comment-130115</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 29 Jan 2011 22:59:24 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/01/windows-scripting/launch-one-script-from-another/#comment-130115</guid>
		<description>.~: I am really thankful to this topic because it really gives up to date information "*:</description>
		<content:encoded><![CDATA[<p>.~: I am really thankful to this topic because it really gives up to date information &#8220;*:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nilpo</title>
		<link>http://www.nilpo.com/2008/01/windows-scripting/launch-one-script-from-another/#comment-125249</link>
		<dc:creator>Nilpo</dc:creator>
		<pubDate>Mon, 03 Jan 2011 15:52:54 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/01/windows-scripting/launch-one-script-from-another/#comment-125249</guid>
		<description>Hi Stephen,

Thanks for the comment.  I'm going to have to politely disagree with you that doubling quotation marks is less cumbersome.  It becomes very hard to differentiate string values that way.  Since most other programming languages do not allow this, it's that much more cumbersome to seasoned programmers.

The correct way to insert a double quote in string is to use the Chr() function.

That being said, you're certainly free to use whichever method you prefer.  That's one of the nice things about VBScript.</description>
		<content:encoded><![CDATA[<p>Hi Stephen,</p>
<p>Thanks for the comment.  I&#8217;m going to have to politely disagree with you that doubling quotation marks is less cumbersome.  It becomes very hard to differentiate string values that way.  Since most other programming languages do not allow this, it&#8217;s that much more cumbersome to seasoned programmers.</p>
<p>The correct way to insert a double quote in string is to use the Chr() function.</p>
<p>That being said, you&#8217;re certainly free to use whichever method you prefer.  That&#8217;s one of the nice things about VBScript.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://www.nilpo.com/2008/01/windows-scripting/launch-one-script-from-another/#comment-125247</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Mon, 03 Jan 2011 15:45:21 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/01/windows-scripting/launch-one-script-from-another/#comment-125247</guid>
		<description>Hey,

You don't need to use the chr(34) for the quotation marks.  doubling up quotation marks causes a single quotation mark to appear in a string.  Note: This can be a triple quotation mark if the quotation mark comes at the beginning of the string or a quadruple quotation mark if only a single quotation mark is the only thing in a string.

Examples

string = "He really ""killed"" at that."
wscript.echo string
' this will output: He really "killed" at that.

string = "he was a real ""monster"""
wscript.echo string
' this will output: he was a real "monster"

string = """"
wscript.echo string
' this will output: "

so
WshShell.Run "cscript.exe " &#38; Chr(34) &#38; strScriptPath &#38; Chr(34), 0, vbTrue
becomes:
WshShell.Run "cscript.exe """ &#38; strScriptPath &#38; """", 0, vbTrue

This is a far less cumbersome (if slightly more initially confusing) method of getting quotation marks into strings.</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>You don&#8217;t need to use the chr(34) for the quotation marks.  doubling up quotation marks causes a single quotation mark to appear in a string.  Note: This can be a triple quotation mark if the quotation mark comes at the beginning of the string or a quadruple quotation mark if only a single quotation mark is the only thing in a string.</p>
<p>Examples</p>
<p>string = &#8220;He really &#8220;&#8221;killed&#8221;" at that.&#8221;<br />
wscript.echo string<br />
&#8216; this will output: He really &#8220;killed&#8221; at that.</p>
<p>string = &#8220;he was a real &#8220;&#8221;monster&#8221;"&#8221;<br />
wscript.echo string<br />
&#8216; this will output: he was a real &#8220;monster&#8221;</p>
<p>string = &#8220;&#8221;"&#8221;<br />
wscript.echo string<br />
&#8216; this will output: &#8221;</p>
<p>so<br />
WshShell.Run &#8220;cscript.exe &#8221; &amp; Chr(34) &amp; strScriptPath &amp; Chr(34), 0, vbTrue<br />
becomes:<br />
WshShell.Run &#8220;cscript.exe &#8220;&#8221;" &amp; strScriptPath &amp; &#8220;&#8221;"&#8221;, 0, vbTrue</p>
<p>This is a far less cumbersome (if slightly more initially confusing) method of getting quotation marks into strings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.nilpo.com/2008/01/windows-scripting/launch-one-script-from-another/#comment-86430</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 29 Apr 2010 03:13:16 +0000</pubDate>
		<guid>http://www.nilpo.com/2008/01/windows-scripting/launch-one-script-from-another/#comment-86430</guid>
		<description>Hey, great tutorial.. Thanks!</description>
		<content:encoded><![CDATA[<p>Hey, great tutorial.. Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

