<div dir="ltr"><div><div><div><div><div><div><div>Hi everyone,<br></div>I am trying to use the Windows <a href="http://ss64.com/nt/for_f.html" target="_blank">FOR /F </a><br><h1><font size="2"></font></h1> <br><pre>Syntax
        FOR <b>/F</b> ["<i>options</i>"] %%<i>parameter</i> IN (<i>filenameset</i>) DO <i>command</i> <br><br> 
The option(s) must be contained within "a pair of quotes"<br></pre><h1><font size="2"></font></h1>
Loop command: against a set of files - conditionally perform a command against each item<br><br></div>Something along the lines of<br></div><br>...Shellcommand(["cmd "," For F "delims= " x"])<br><br></div>note that the 2 paramters "delims" must be inside double quotes<br><br></div>I have tried doing<br><br>...Shellcommand(["cmd ",r" connect to service "delims= " x"])<br><br></div>but I keep getting errors i,e unexpected delims<br><br></div>however when I type the command into the windows cmd shell it works fine<br><div><div><div><div><br></div><div>Any idea how I can make use of this command? How should I go about escaping the " so that they aren't rejected in the master.cfg but still make it through when being executed<br><br></div><div>Regards<br></div></div></div></div></div>