<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Command Prompt: Run BAT. File in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Command-Prompt-Run-BAT-File/m-p/61612#M14881</link>
    <description>&lt;P&gt;This wasn't at all obvious to me so I thought worth mentioning:&lt;/P&gt;
&lt;P&gt;When using the VBO Command Prompt : Run BAT. File, it doesn't work if you step through it in debug mode.&amp;nbsp; You have to run the process using the Go button and take your hand off the mouse - ie. just let it run.&lt;/P&gt;
&lt;P&gt;Also, when specifying the .bat file location it uses Global Send Keys so any special characters need to be compatible.&amp;nbsp; For example, this process uses a script saved in &lt;EM&gt;c:\&lt;/EM&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;&lt;EM&gt;Program Files\Your Drive Map\drivemap.bat&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; to map a network drive:&lt;/P&gt;
&lt;P&gt;First, save the credentials for the drive using the command line/Powershell: &lt;EM&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;USE x: \\your path\folder /savecred /p:yes&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;Then, in a BP process:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;Step 1: Command Prompt: Launch&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;Step 2: Command Prompt:Run BAT. File (Bat. file path value:&lt;EM&gt; "&amp;lt;{SHIFT}'&amp;gt;{SHIFT}"&amp;amp;"c"&amp;amp;"&amp;lt;{SHIFT}:&amp;gt;{SHIFT}"&amp;amp; "\Program Files\Your Drive Map\drivemap.bat"&amp;amp;"&amp;lt;{SHIFT}'&amp;gt;{SHIFT}"&lt;/EM&gt;&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;Step 3: Command Prompt:Exit Code (Name value: &lt;EM&gt;"EXIT 0"&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jeremy Dean&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Sun, 11 Feb 2024 22:26:00 GMT</pubDate>
    <dc:creator>JeremyRTDean</dc:creator>
    <dc:date>2024-02-11T22:26:00Z</dc:date>
    <item>
      <title>Command Prompt: Run BAT. File</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Command-Prompt-Run-BAT-File/m-p/61612#M14881</link>
      <description>&lt;P&gt;This wasn't at all obvious to me so I thought worth mentioning:&lt;/P&gt;
&lt;P&gt;When using the VBO Command Prompt : Run BAT. File, it doesn't work if you step through it in debug mode.&amp;nbsp; You have to run the process using the Go button and take your hand off the mouse - ie. just let it run.&lt;/P&gt;
&lt;P&gt;Also, when specifying the .bat file location it uses Global Send Keys so any special characters need to be compatible.&amp;nbsp; For example, this process uses a script saved in &lt;EM&gt;c:\&lt;/EM&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;&lt;EM&gt;Program Files\Your Drive Map\drivemap.bat&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; to map a network drive:&lt;/P&gt;
&lt;P&gt;First, save the credentials for the drive using the command line/Powershell: &lt;EM&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;USE x: \\your path\folder /savecred /p:yes&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;Then, in a BP process:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;Step 1: Command Prompt: Launch&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;Step 2: Command Prompt:Run BAT. File (Bat. file path value:&lt;EM&gt; "&amp;lt;{SHIFT}'&amp;gt;{SHIFT}"&amp;amp;"c"&amp;amp;"&amp;lt;{SHIFT}:&amp;gt;{SHIFT}"&amp;amp; "\Program Files\Your Drive Map\drivemap.bat"&amp;amp;"&amp;lt;{SHIFT}'&amp;gt;{SHIFT}"&lt;/EM&gt;&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;Step 3: Command Prompt:Exit Code (Name value: &lt;EM&gt;"EXIT 0"&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jeremy Dean&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 11 Feb 2024 22:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Command-Prompt-Run-BAT-File/m-p/61612#M14881</guid>
      <dc:creator>JeremyRTDean</dc:creator>
      <dc:date>2024-02-11T22:26:00Z</dc:date>
    </item>
    <item>
      <title>RE: Command Prompt: Run BAT. File</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Command-Prompt-Run-BAT-File/m-p/61613#M14882</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Hello Jeremy,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thanks for sharing&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Leonardo Soares&lt;BR /&gt;RPA Developer Tech Leader&lt;BR /&gt;América/Brazil&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Feb 2024 00:34:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Command-Prompt-Run-BAT-File/m-p/61613#M14882</guid>
      <dc:creator>LeonardoSQueiroz</dc:creator>
      <dc:date>2024-02-12T00:34:00Z</dc:date>
    </item>
  </channel>
</rss>

