<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How Can I Use Long File Names as Parameters?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/08/06/how-can-i-use-long-file-names-as-parameters.aspx</link><description>Hey, Scripting Guy! I’m trying to run a command-line tool from a script, but I need to pass it a long file name like C:\Documents and Settings\All Users\Desktop\logfile.txt . No matter how I try to pass that file name, however, my script blows up on me</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How Can I Use Long File Names as Parameters?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2004/08/06/how-can-i-use-long-file-names-as-parameters.aspx#3345373</link><pubDate>Tue, 20 Jul 2010 17:07:42 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3345373</guid><dc:creator>ILv2Xlr8</dc:creator><description>&lt;p&gt;This doesn&amp;#39;t seem to work when I have mutiple switches that I am trying to add to the command line. &amp;nbsp;e.g.:&lt;/p&gt;
&lt;p&gt;Dim switch1&lt;/p&gt;
&lt;p&gt;switch1= &amp;quot;-switch1name chr(34) Networkdrive\longfilenamepath\dir1withspecial&amp;amp;characters chr(34) &amp;quot;&lt;/p&gt;
&lt;p&gt;Dim siwtch2&lt;/p&gt;
&lt;p&gt;switch2= &amp;quot;-switch1name chr(34) Networkdrive\longfilenamepath\dir2withspecial&amp;amp;characters chr(34) &amp;quot;&lt;/p&gt;
&lt;p&gt;Dim switch3&lt;/p&gt;
&lt;p&gt;switch3= &amp;quot;-switch1name chr(34) Networkdrive\longfilenamepath\dir3withspecial&amp;amp;characters chr(34) &amp;quot;&lt;/p&gt;
&lt;p&gt;Dim switch4&lt;/p&gt;
&lt;p&gt;switch4= &amp;quot;-switch1name chr(34) Networkdrive\longfilenamepath\dir4withspecial&amp;amp;characters chr(34) &amp;quot;&lt;/p&gt;
&lt;p&gt;Dim switch5&lt;/p&gt;
&lt;p&gt;switch5= &amp;quot;-switch1name chr(34) Networkdrive\longfilenamepath\dir5withspecial&amp;amp;characters chr(34) &amp;quot;&lt;/p&gt;
&lt;p&gt;shell &amp;quot;Localdrive\path\file.exe&amp;quot; &amp;amp; switch1 &amp;amp; switch2 &amp;amp; switch3 &amp;amp; switch4 &amp;amp; switch5&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3345373" width="1" height="1"&gt;</description></item></channel></rss>