<?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 Re: Unable to run cmd from Start Process in Digital Exchange</title>
    <link>https://community.blueprism.com/t5/Digital-Exchange/Unable-to-run-cmd-from-Start-Process/m-p/111155#M3569</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/34423"&gt;@Nandita_r&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can run the action in the following way as you can see I was able to also start a schedule at my end:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="devneetmohanty07_0-1717405878677.png" style="width: 999px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/38441iAF609BD38098A109/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="devneetmohanty07_0-1717405878677.png" alt="devneetmohanty07_0-1717405878677.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For setting up the workflow, I have three data items: Username (Text), Password (Password) and Schedule Name (Text). Use the&amp;nbsp;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;STRONG&gt;Start Process Read Stderr and Stdout&lt;/STRONG&gt;&lt;SPAN&gt;' action of the '&lt;/SPAN&gt;&lt;STRONG&gt;Utility - Environment&lt;/STRONG&gt;&lt;SPAN&gt;' business object as shown below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="devneetmohanty07_1-1717405971670.png" style="width: 999px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/38442iE8A1584771D1E569/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="devneetmohanty07_1-1717405971670.png" alt="devneetmohanty07_1-1717405971670.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Process Name:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;"""C:\Program Files\Blue Prism Limited\Blue Prism Automate\AutomateC.exe""" &lt;/LI-CODE&gt;&lt;P&gt;Schedule Name:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;"/user " &amp;amp; """" &amp;amp; [Username] &amp;amp; """" &amp;amp; " " &amp;amp; """" &amp;amp; [Password] &amp;amp; """" &amp;amp; " /startschedule /schedule " &amp;amp; """" &amp;amp; [Schedule Name] &amp;amp; """"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, on a side note, even if you have multiple schedules to run, you can write all the scheduler command one after another in one batch script and start the schedule as this will not immediately run the process anyhow but will just set the schedules to run at their designated time frames so it can be used for running multiple schedules for a given day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2024 09:16:36 GMT</pubDate>
    <dc:creator>devneetmohanty07</dc:creator>
    <dc:date>2024-06-03T09:16:36Z</dc:date>
    <item>
      <title>Unable to run cmd from Start Process</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Unable-to-run-cmd-from-Start-Process/m-p/111055#M3561</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to automate to run a schedule from command prompt using &lt;STRONG&gt;Utility-Environment VBO: Start Process&lt;/STRONG&gt; The command prompt runs but the argument doesn't run, however I tried using the &lt;STRONG&gt;"Start process Read Stderr" Action&lt;/STRONG&gt; but the stage keeps waiting while run and gets hanged.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nandita_r_0-1717148883263.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/38375i6CED86297D45913E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Nandita_r_0-1717148883263.png" alt="Nandita_r_0-1717148883263.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there any solution other than automating CMD using attach.&lt;/P&gt;&lt;P&gt;I wanted the Start Process Action to work.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 09:49:52 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Unable-to-run-cmd-from-Start-Process/m-p/111055#M3561</guid>
      <dc:creator>Nandita_r</dc:creator>
      <dc:date>2024-05-31T09:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to run cmd from Start Process</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Unable-to-run-cmd-from-Start-Process/m-p/111067#M3562</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/34423"&gt;@Nandita_r&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you let us know what you have in the&amp;nbsp;&lt;STRONG&gt;[Schedule Argument]&lt;/STRONG&gt; data item. Are you using the "/c" CMD.exe option?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 16:34:08 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Unable-to-run-cmd-from-Start-Process/m-p/111067#M3562</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2024-05-31T16:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to run cmd from Start Process</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Unable-to-run-cmd-from-Start-Process/m-p/111144#M3566</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/34423"&gt;@Nandita_r&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;A bit confused to why you want to open CMD.exe file as this action by default uses &lt;EM&gt;System.Diagnostics.Process&lt;/EM&gt; class which is equivalent to the CMD shell itself. What I mean by this is that you directly can use CMD commands using this action as shown below:&lt;BR /&gt;&lt;BR /&gt;For example, I want to get the hostname for my machine. How I manually would do the same using CMD screen is shown here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="devneetmohanty07_0-1717337526138.png" style="width: 999px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/38433iD8E9058E14A43E2A/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="devneetmohanty07_0-1717337526138.png" alt="devneetmohanty07_0-1717337526138.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now if I want to do the same using Blue Prism, I would use the '&lt;STRONG&gt;Start Process Read Stderr and Stdout&lt;/STRONG&gt;' action of the '&lt;STRONG&gt;Utility - Environment&lt;/STRONG&gt;' business object as shown below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="devneetmohanty07_1-1717337690682.png" style="width: 999px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/38434i618AE5B4F64FA36D/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="devneetmohanty07_1-1717337690682.png" alt="devneetmohanty07_1-1717337690682.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can see that upon executing the workflow, I am getting my desired output in the &lt;EM&gt;Standard Output&lt;/EM&gt; data item:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="devneetmohanty07_3-1717337722820.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/38436i4334D3F4370E369A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="devneetmohanty07_3-1717337722820.png" alt="devneetmohanty07_3-1717337722820.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, potentially if you have multiple commands to be executed one after another you can use this action multiple times in the same way that I showed you but they will work in separate sessions which means that if you have a scenario where let say within the same session you have multiple commands to execute then reusing this action again and again won't work. Also, for any commands using generic system keywords like cd, dir etc., the action cannot be used directly. For these cases, my suggestion would be to create a batch script and run the same using this action.&lt;BR /&gt;&lt;BR /&gt;For example, if I have something like below to be executed:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="devneetmohanty07_4-1717337888730.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/38437iAD51DF06173DF9B3/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="devneetmohanty07_4-1717337888730.png" alt="devneetmohanty07_4-1717337888730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For executing these commands, I will create a Batch script file as shown below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="devneetmohanty07_5-1717338378482.png" style="width: 999px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/38438iD174AAF7DCE95B87/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="devneetmohanty07_5-1717338378482.png" alt="devneetmohanty07_5-1717338378482.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, I can simply run the batch script using the&amp;nbsp;'&lt;STRONG&gt;Start Process Read Stderr and Stdout&lt;/STRONG&gt;' action of the '&lt;STRONG&gt;Utility - Environment&lt;/STRONG&gt;' business object:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="devneetmohanty07_6-1717338579244.png" style="width: 999px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/38439iF5BED75A3252E948/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="devneetmohanty07_6-1717338579244.png" alt="devneetmohanty07_6-1717338579244.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This would be the optimal way to use any CMD based batch script automation workflow in my opinion other than relying on any business object for spying the CMD GUI interface.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 14:32:08 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Unable-to-run-cmd-from-Start-Process/m-p/111144#M3566</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2024-06-02T14:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to run cmd from Start Process</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Unable-to-run-cmd-from-Start-Process/m-p/111151#M3567</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/548"&gt;@MichealCharron&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to run this cmd&lt;/P&gt;&lt;P&gt;"C:\Program Files\Blue Prism Limited\Blue Prism Automate\"AutomateC /startschedule /schedule "schedulename" /user "user" "pwd"&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 08:19:10 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Unable-to-run-cmd-from-Start-Process/m-p/111151#M3567</guid>
      <dc:creator>Nandita_r</dc:creator>
      <dc:date>2024-06-03T08:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to run cmd from Start Process</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Unable-to-run-cmd-from-Start-Process/m-p/111152#M3568</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1843"&gt;@devneetmohanty07&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for the reply but I wanted to run this command: &lt;SPAN&gt;"C:\Program Files\Blue Prism Limited\Blue Prism Automate\"AutomateC /startschedule /schedule "schedulename" /user "user" "pwd"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To start schedules from command prompt, To use batch script I have multiple schedules to run, which cannot be added in one script.&lt;/P&gt;&lt;P&gt;Do use have any other solution where I Can execute this command.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 08:59:26 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Unable-to-run-cmd-from-Start-Process/m-p/111152#M3568</guid>
      <dc:creator>Nandita_r</dc:creator>
      <dc:date>2024-06-03T08:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to run cmd from Start Process</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Unable-to-run-cmd-from-Start-Process/m-p/111155#M3569</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/34423"&gt;@Nandita_r&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can run the action in the following way as you can see I was able to also start a schedule at my end:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="devneetmohanty07_0-1717405878677.png" style="width: 999px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/38441iAF609BD38098A109/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="devneetmohanty07_0-1717405878677.png" alt="devneetmohanty07_0-1717405878677.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For setting up the workflow, I have three data items: Username (Text), Password (Password) and Schedule Name (Text). Use the&amp;nbsp;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;STRONG&gt;Start Process Read Stderr and Stdout&lt;/STRONG&gt;&lt;SPAN&gt;' action of the '&lt;/SPAN&gt;&lt;STRONG&gt;Utility - Environment&lt;/STRONG&gt;&lt;SPAN&gt;' business object as shown below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="devneetmohanty07_1-1717405971670.png" style="width: 999px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/38442iE8A1584771D1E569/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="devneetmohanty07_1-1717405971670.png" alt="devneetmohanty07_1-1717405971670.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Process Name:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;"""C:\Program Files\Blue Prism Limited\Blue Prism Automate\AutomateC.exe""" &lt;/LI-CODE&gt;&lt;P&gt;Schedule Name:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;"/user " &amp;amp; """" &amp;amp; [Username] &amp;amp; """" &amp;amp; " " &amp;amp; """" &amp;amp; [Password] &amp;amp; """" &amp;amp; " /startschedule /schedule " &amp;amp; """" &amp;amp; [Schedule Name] &amp;amp; """"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, on a side note, even if you have multiple schedules to run, you can write all the scheduler command one after another in one batch script and start the schedule as this will not immediately run the process anyhow but will just set the schedules to run at their designated time frames so it can be used for running multiple schedules for a given day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 09:16:36 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Unable-to-run-cmd-from-Start-Process/m-p/111155#M3569</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2024-06-03T09:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to run cmd from Start Process</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Unable-to-run-cmd-from-Start-Process/m-p/111156#M3570</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1843"&gt;@devneetmohanty07&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 09:53:48 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Unable-to-run-cmd-from-Start-Process/m-p/111156#M3570</guid>
      <dc:creator>Nandita_r</dc:creator>
      <dc:date>2024-06-03T09:53:48Z</dc:date>
    </item>
  </channel>
</rss>

