Launch an executable file
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
31-01-18 11:07 PM
Hello,
Could you please tell me how to launch an ".Bat" file with Blue Prism? I couldn't find that in the utility file management.
Thank you,
David
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-02-18 09:17 AM
Hi David,
You can use the Utility - Environment, it has a start process action where you can pass the location of your Bat file as parameters.
Regards
Sambashiva
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-02-18 01:15 PM
Hi Sambashiva,
Thank you very much for your message.
I tried to use this command with the following parameters:
Application: Filepath of my Bat file
Arguments: nothing
Is seems it launches the cmd asks me to ""press any key to continue"" but it doesn't execute what my .Bat file is supposed to do. Did I do something wrong?
Thank you,
David
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-02-18 01:44 PM
Hi David,
Try to use this code in your object's code stage System.Diagnostics.Process.Start(Path of Bat file);
add System.Diagnostics in the import statements.
Regards
Sambashiva
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-02-18 02:05 PM
Hi Sambashiva,
Thank you for your message. To be sure I understand:
This is the object original parameter:
""If Arguments"""" Then
System.Diagnostics.Process.Start(Application, Arguments)
Else
System.Diagnostics.Process.Start(Application)
End If""
--------------------------------------------------------------------------
This is what I did :
If Arguments"""" Then
System.Diagnostics.Process.Start(""C:\myfile.bat"")
Else
System.Diagnostics.Process.Start(Application)
End If
""add System.Diagnostics in the import statements."" --> Where does this go?
Thank you very much again.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-02-18 01:06 PM
Can anyone help please? I just need this to finish my robot 🙂
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
14-02-18 02:15 AM
If you are still stuck on this, you can put the full file path in both parameters of the Utility - Environment > start process action.