document.write('<div class="c" style="font-family: monospace;"><br />');
document.write('option explicit<br />');
document.write('<br />');
document.write('dim RADMINPATH<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('RADMINPATH = <span style="color: #ff0000;">&quot;C:<span style="color: #000099; font-weight: bold;">\P</span>ROGRAM FILES<span style="color: #000099; font-weight: bold;">\R</span>ADMIN<span style="color: #000099; font-weight: bold;">\R</span>ADMIN.EXE&quot;</span><br />');
document.write('<br />');
document.write('dim objfso<br />');
document.write('dim objshell<br />');
document.write('dim objshortcut<br />');
document.write('dim strExePath<br />');
document.write('dim strFilename<br />');
document.write('dim strConnect<br />');
document.write('dim strThrough<br />');
document.write('dim strUpdates<br />');
document.write('dim bBatch<br />');
document.write('dim bAREncrypt<br />');
document.write('dim bARThrough<br />');
document.write('dim bARFile <br />');
document.write('dim bARLocolor<br />');
document.write('dim bARUpdates<br />');
document.write('<br />');
document.write('<span style="color: #000000; font-weight: bold;">function</span> GetParams<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('dim objArg<br />');
document.write('dim lPos<br />');
document.write('dim errmsg<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> each objArg in WScript.<span style="color: #202020;">Arguments</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = <span style="color: #cc66cc;">0</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>,objarg,<span style="color: #ff0000;">&quot;file:&quot;</span>,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> lpos&nbsp;&gt; <span style="color: #cc66cc;">0</span> then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strfilename = mid<span style="color: #66cc66;">&#40;</span>objarg,lpos<span style="color: #cc66cc;">+5</span>,len<span style="color: #66cc66;">&#40;</span>objarg<span style="color: #66cc66;">&#41;</span>-<span style="color: #66cc66;">&#40;</span>lpos<span style="color: #cc66cc;">+4</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>,objarg,<span style="color: #ff0000;">&quot;connect:&quot;</span>,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> lpos&nbsp;&gt; <span style="color: #cc66cc;">0</span> then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strConnect = mid<span style="color: #66cc66;">&#40;</span>objarg,lpos<span style="color: #cc66cc;">+8</span>,len<span style="color: #66cc66;">&#40;</span>objarg<span style="color: #66cc66;">&#41;</span>-<span style="color: #66cc66;">&#40;</span>lpos<span style="color: #cc66cc;">+7</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>,objarg,<span style="color: #ff0000;">&quot;through&quot;</span>,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> lpos&nbsp;&gt; <span style="color: #cc66cc;">0</span> then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> mid<span style="color: #66cc66;">&#40;</span>objarg,lpos<span style="color: #cc66cc;">-1</span>,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> = <span style="color: #ff0000;">&quot;-&quot;</span> then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; barthrough = <span style="color: #cc66cc;">2</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> len<span style="color: #66cc66;">&#40;</span>objarg<span style="color: #66cc66;">&#41;</span>&gt;<span style="color: #cc66cc;">9</span> then&nbsp; &nbsp;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strthrough = mid<span style="color: #66cc66;">&#40;</span>objarg,lpos<span style="color: #cc66cc;">+8</span>,len<span style="color: #66cc66;">&#40;</span>objarg<span style="color: #66cc66;">&#41;</span>-<span style="color: #66cc66;">&#40;</span>lpos<span style="color: #cc66cc;">+7</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; barthrough = <span style="color: #cc66cc;">1</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strthrough = <span style="color: #ff0000;">&quot;ERROR&quot;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>,objarg,<span style="color: #ff0000;">&quot;updates&quot;</span>,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> lpos&nbsp;&gt; <span style="color: #cc66cc;">0</span> then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> mid<span style="color: #66cc66;">&#40;</span>objarg,lpos<span style="color: #cc66cc;">-1</span>,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> = <span style="color: #ff0000;">&quot;-&quot;</span> then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; barupdates = <span style="color: #cc66cc;">2</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> len<span style="color: #66cc66;">&#40;</span>objarg<span style="color: #66cc66;">&#41;</span>&gt;<span style="color: #cc66cc;">8</span> then&nbsp; &nbsp;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strupdates = mid<span style="color: #66cc66;">&#40;</span>objarg,lpos<span style="color: #cc66cc;">+8</span>,len<span style="color: #66cc66;">&#40;</span>objarg<span style="color: #66cc66;">&#41;</span>-<span style="color: #66cc66;">&#40;</span>lpos<span style="color: #cc66cc;">+7</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; barupdates = <span style="color: #cc66cc;">1</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strupdates = <span style="color: #ff0000;">&quot;ERROR&quot;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>,objarg,<span style="color: #ff0000;">&quot;/locolor&quot;</span>,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> lpos &gt; <span style="color: #cc66cc;">0</span> then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; barlocolor = <span style="color: #cc66cc;">2</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>,objarg,<span style="color: #ff0000;">&quot;/-locolor&quot;</span>,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> lpos &gt; <span style="color: #cc66cc;">0</span> then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; barlocolor = <span style="color: #cc66cc;">1</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>,objarg,<span style="color: #ff0000;">&quot;/encrypt&quot;</span>,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> lpos &gt; <span style="color: #cc66cc;">0</span> then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; barencrypt = <span style="color: #cc66cc;">2</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>,objarg,<span style="color: #ff0000;">&quot;/-encrypt&quot;</span>,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> lpos &gt; <span style="color: #cc66cc;">0</span> then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; barencrypt = <span style="color: #cc66cc;">1</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>,objarg,<span style="color: #ff0000;">&quot;/transfer&quot;</span>,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> lpos &gt; <span style="color: #cc66cc;">0</span> then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; barfile = <span style="color: #cc66cc;">2</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>,objarg,<span style="color: #ff0000;">&quot;/-transfer&quot;</span>,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> lpos &gt; <span style="color: #cc66cc;">0</span> then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; barfile = <span style="color: #cc66cc;">1</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>,objarg,<span style="color: #ff0000;">&quot;/batch&quot;</span>,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> lpos &gt; <span style="color: #cc66cc;">0</span> then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bBatch = <span style="color: #cc66cc;">2</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; next<br />');
document.write('<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>bbatch = <span style="color: #cc66cc;">0</span> and strfilename = <span style="color: #ff0000;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span> or strthrough = <span style="color: #ff0000;">&quot;ERROR&quot;</span> or Strupdates = <span style="color: #ff0000;">&quot;ERROR&quot;</span>&nbsp; then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; call help<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end <span style="color: #b1b100;">if</span><br />');
document.write('<br />');
document.write('end <span style="color: #000000; font-weight: bold;">function</span><br />');
document.write('<br />');
document.write('<span style="color: #000000; font-weight: bold;">function</span> startshortcut<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; set objfso = createobject<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;scripting.filesystemobject&quot;</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strexepath = objfso.<span style="color: #202020;">getabsolutepathname</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;.&quot;</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> bbatch = <span style="color: #cc66cc;">0</span> then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set objShell = createobject<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;WScript.shell&quot;</span><span style="color: #66cc66;">&#41;</span><br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set objShortcut = objShell.<span style="color: #202020;">createshortcut</span><span style="color: #66cc66;">&#40;</span>strexepath &amp; <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span> &amp; strfilename &amp; &quot;</span> - <span style="color: #ff0000;">&quot; &amp; strconnect &amp; &quot;</span>.<span style="color: #202020;">lnk</span><span style="color: #ff0000;">&quot;)&nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if objshortcut.targetpath &lt;&gt; &quot;</span><span style="color: #ff0000;">&quot; then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; call EditShortcut<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; call Createshortcut<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; else<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; call BatchProcessing<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('end function<br />');
document.write('<br />');
document.write('function Init()<br />');
document.write('<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; set objfso = nothing<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; set objshell = nothing<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; set objshortcut = nothing<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strExePath = &quot;</span><span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strFilename = &quot;</span><span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strConnect = &quot;</span><span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strThrough = &quot;</span><span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; bBatch = 0<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; barfile = 0<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; barthrough = 0<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; barencrypt =0<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; barlocolor =0<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; barupdates =0<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('end function<br />');
document.write('<br />');
document.write('function EditShortcut()<br />');
document.write('dim strnewarguments<br />');
document.write('dim lpos<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; stop<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = &quot;</span><span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; if strconnect &lt;&gt; &quot;</span><span style="color: #ff0000;">&quot; then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stop<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(1,objshortcut.arguments,&quot;</span>/connect:<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos &gt; 1 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = left(objshortcut.arguments,lpos-1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(lpos+1,objshortcut.arguments,&quot;</span>/<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos&gt;0 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = trim(strnewarguments) &amp; &quot;</span> /connect:<span style="color: #ff0000;">&quot; &amp; strconnect &amp; &quot;</span> <span style="color: #ff0000;">&quot; &amp; trim(right(objshortcut.arguments,len(objshortcut.arguments)-(lpos-1)))<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = &quot;</span>/connect:<span style="color: #ff0000;">&quot; &amp; strconnect &amp; &quot;</span> <span style="color: #ff0000;">&quot; &amp; strnewarguments<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objshortcut.arguments = strnewarguments<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end if&nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; lpos = 0<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = &quot;</span><span style="color: #ff0000;">&quot;&nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; if strthrough &lt;&gt; &quot;</span><span style="color: #ff0000;">&quot; then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(1,objshortcut.arguments,&quot;</span>/through:<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos &gt; 1 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = left(objshortcut.arguments,lpos-1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(lpos+1,objshortcut.arguments,&quot;</span>/<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos&gt;0 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = trim(strnewarguments) &amp; &quot;</span> /through:<span style="color: #ff0000;">&quot; &amp; strthrough &amp; &quot;</span> <span style="color: #ff0000;">&quot; &amp; trim(right(objshortcut.arguments,len(objshortcut.arguments)-(lpos-1)))<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objshortcut.arguments = trim(strnewarguments)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; lpos = 0<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = &quot;</span><span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; if barthrough = 2 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(1,objshortcut.arguments,&quot;</span> /through:<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos &gt; 1 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = left(objshortcut.arguments,lpos-1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(lpos+1,objshortcut.arguments,&quot;</span>/<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos&gt;0 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = trim(strnewarguments) &amp; &quot;</span> <span style="color: #ff0000;">&quot; &amp; right(objshortcut.arguments,len(objshortcut.arguments)-(lpos-1))<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objshortcut.arguments = trim(strnewarguments)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; lpos = 0<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = &quot;</span><span style="color: #ff0000;">&quot;&nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; if strupdates &lt;&gt; &quot;</span><span style="color: #ff0000;">&quot; then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(1,objshortcut.arguments,&quot;</span>/updates:<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos &gt; 1 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = left(objshortcut.arguments,lpos-1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(lpos+1,objshortcut.arguments,&quot;</span>/<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos&gt;0 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = trim(strnewarguments) &amp; &quot;</span> /updates:<span style="color: #ff0000;">&quot; &amp; strupdates &amp; &quot;</span> <span style="color: #ff0000;">&quot; &amp; trim(right(objshortcut.arguments,len(objshortcut.arguments)-(lpos-1)))<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objshortcut.arguments = trim(strnewarguments)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; lpos = 0<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = &quot;</span><span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; if barupdates = 2 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(1,objshortcut.arguments,&quot;</span>/updates:<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos &gt; 1 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = left(objshortcut.arguments,lpos-1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(lpos+1,objshortcut.arguments,&quot;</span>/<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos&gt;0 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = trim(strnewarguments) &amp; &quot;</span> <span style="color: #ff0000;">&quot; &amp; right(objshortcut.arguments,len(objshortcut.arguments)-(lpos-1))<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objshortcut.arguments = trim(strnewarguments)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; lpos = 0<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = &quot;</span><span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; if barencrypt = 2 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(1,objshortcut.arguments,&quot;</span>/encrypt<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos = 0 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objshortcut.arguments = trim(objshortcut.arguments) &amp; &quot;</span> <span style="color: #ff0000;">&quot; &amp; &quot;</span>/encrypt<span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; elseif barencrypt = 1 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(1,objshortcut.arguments,&quot;</span>/encrypt<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos &gt; 1 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = left(objshortcut.arguments,lpos-1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(lpos+1,objshortcut.arguments,&quot;</span>/<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos&gt;0 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = trim(strnewarguments) &amp; &quot;</span> <span style="color: #ff0000;">&quot; &amp; trim(right(objshortcut.arguments,len(objshortcut.arguments)-(lpos-1)))<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objshortcut.arguments = trim(strnewarguments)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; lpos = 0<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = &quot;</span><span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; if barlocolor = 2 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(1,objshortcut.arguments,&quot;</span>/locolor<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos = 0 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objshortcut.arguments = trim(objshortcut.arguments) &amp; &quot;</span> <span style="color: #ff0000;">&quot; &amp; &quot;</span>/locolor<span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; elseif barlocolor = 1 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(1,objshortcut.arguments,&quot;</span>/locolor<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos &gt; 1 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = left(objshortcut.arguments,lpos-1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(lpos+1,objshortcut.arguments,&quot;</span>/<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos&gt;0 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = trim(strnewarguments) &amp; &quot;</span> <span style="color: #ff0000;">&quot; &amp; trim(right(objshortcut.arguments,len(objshortcut.arguments)-(lpos-1)))<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objshortcut.arguments = trim(strnewarguments)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; lpos = 0<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = &quot;</span><span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; if barfile = 2 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(1,objshortcut.arguments,&quot;</span>/file<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos = 0 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objshortcut.arguments = objshortcut.arguments &amp; &quot;</span> <span style="color: #ff0000;">&quot; &amp; &quot;</span>/file<span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; elseif barfile = 1 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(1,objshortcut.arguments,&quot;</span>/file<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos &gt; 1 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = left(objshortcut.arguments,lpos-1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(lpos+1,objshortcut.arguments,&quot;</span>/<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos&gt;0 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strnewarguments = trim(strnewarguments) &amp; &quot;</span> <span style="color: #ff0000;">&quot; &amp; trim(right(objshortcut.arguments,len(objshortcut.arguments)-(lpos-1)))<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objshortcut.arguments = trim(strnewarguments)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; objshortcut.save<br />');
document.write('end function<br />');
document.write('<br />');
document.write('function createshortcut()<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; objshortcut.targetpath = radminpath<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; if strconnect &lt;&gt; &quot;</span><span style="color: #ff0000;">&quot; then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objshortcut.arguments = objshortcut.arguments &amp; &quot;</span> /connect:<span style="color: #ff0000;">&quot; &amp; strconnect &amp; &quot;</span> <span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; Else<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; call Help<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; if strthrough &lt;&gt; &quot;</span><span style="color: #ff0000;">&quot; then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objshortcut.arguments = objshortcut.arguments &amp; &quot;</span> /through:<span style="color: #ff0000;">&quot; &amp; strthrough &amp; &quot;</span> <span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; if barencrypt = 2 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objshortcut.arguments = objshortcut.arguments &amp; &quot;</span> /encrypt<span style="color: #ff0000;">&quot; &amp; &quot;</span> <span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; if barlocolor = 2 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objshortcut.arguments = objshortcut.arguments &amp; &quot;</span> /locolor<span style="color: #ff0000;">&quot; &amp; &quot;</span> <span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; if barfile = 2 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objshortcut.arguments = objshortcut.arguments &amp; &quot;</span> /file<span style="color: #ff0000;">&quot; &amp; &quot;</span> <span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; objshortcut.save&nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('end function<br />');
document.write('<br />');
document.write('function BatchProcessing()<br />');
document.write('dim objfolder<br />');
document.write('dim objfile<br />');
document.write('dim lpos<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; lpos = 0<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; set objfolder = objfso.getfolder(&quot;</span>.<span style="color: #ff0000;">&quot;)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; for each objfile in objfolder.files <br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpos = instr(1,mid(objfile.path,len(objfile.path) - 3,4),&quot;</span>lnk<span style="color: #ff0000;">&quot;,1)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if lpos &gt; 0 then<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strfilename = objfso.getbasename(objfile.path)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set objShell = createobject(&quot;</span>WScript.<span style="color: #202020;">shell</span><span style="color: #ff0000;">&quot;)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set objShortcut = objShell.createshortcut(strexepath &amp; &quot;</span>\<span style="color: #ff0000;">&quot; &amp; strfilename &amp; &quot;</span>.<span style="color: #202020;">lnk</span><span style="color: #ff0000;">&quot;)<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; call editshortcut<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; next<br />');
document.write('<br />');
document.write('<br />');
document.write('end function<br />');
document.write('<br />');
document.write('function Help()<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; dim strmessage<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; strmessage = &quot;</span>Usage Guide:<span style="color: #ff0000;">&quot; &amp; vbcrlf &amp; &quot;</span>/connect: ... <span style="color: #202020;">Required</span> when creating a new shortcut<span style="color: #ff0000;">&quot; &amp; vbcrlf &amp; &quot;</span>/file: ... <span style="color: #202020;">Always</span> required unless /batch is used<span style="color: #ff0000;">&quot; &amp; vbcrlf &amp; &quot;</span>/batch ... <span style="color: #202020;">Performs</span> requested processing on all shortcuts in the working folder<span style="color: #ff0000;">&quot; &amp; vbcrlf &amp; &quot;</span>/through: ... <span style="color: #202020;">Specifies</span> a server to connect through<span style="color: #ff0000;">&quot; &amp; vbcrlf &amp; &quot;</span>/-through ... <span style="color: #202020;">Removes</span> the through parameter<span style="color: #ff0000;">&quot; &amp; vbcrlf &amp; &quot;</span>/locolor ... <span style="color: #202020;">Enables</span> locolor mode<span style="color: #ff0000;">&quot; &amp; vbcrlf &amp; &quot;</span>/-locolor ... <span style="color: #202020;">Removes</span> the locolor option<span style="color: #ff0000;">&quot; &amp; vbcrlf &amp; &quot;</span>/encrypt ... <span style="color: #202020;">Enables</span> an encrypted link<span style="color: #ff0000;">&quot; &amp; vbcrlf &amp; &quot;</span>/-encrypt ... <span style="color: #202020;">Removes</span> the encrypt option<span style="color: #ff0000;">&quot; &amp; vbcrlf &amp; &quot;</span>/transfer ... <span style="color: #202020;">Enables</span> the file transfer mode<span style="color: #ff0000;">&quot; &amp; vbcrlf &amp; &quot;</span>/-transfer .. <span style="color: #202020;">Removes</span> the file transfer option<span style="color: #ff0000;">&quot; &amp; vbcrlf &amp; &quot;</span>/updates:** ... <span style="color: #202020;">Controls</span> the refresh rate<span style="color: #ff0000;">&quot; &amp; vbcrlf &amp; &quot;</span>/-updates ... <span style="color: #202020;">Removes</span> the refresh rate option<span style="color: #ff0000;">&quot; &amp; vbcrlf &amp; &quot;</span>All the switches can be used in batch mode except /file which is ignored<span style="color: #ff0000;">&quot; &amp; vbcrlf &amp; &quot;</span>as in batch mode it is not required.<span style="color: #ff0000;">&quot;<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; msgbox strmessage<br />');
document.write('&nbsp; &nbsp; &nbsp; &nbsp; wscript.quit(-1)<br />');
document.write('end function<br />');
document.write('<br />');
document.write('<br />');
document.write('call init<br />');
document.write('call getparams<br />');
document.write('call startshortcut<br />');
document.write('<br />');
document.write('&nbsp;</span></div>');
document.write('<br />&nbsp;<br /><div style="font-size: 12px">Brought to you by the community at <a href="http://www.bytemycode.com/snippets/snippet/153/1/" target="_blank">byteMyCode</a>.</div>');
