How to open OBS Studio with UIPath studioX

Hey!

Im trying to open the “OBS Studio” software with UIPath studioX>>activities>> use application but i had an error. (Usually works with other softwares).

Application path: “C:\Program Files\obs-studio\bin\64bit\obs64.exe”

If i manullay doubleclick to the obs64.exe file it opens correctly, but if the UIPath tries to open it, it does not work. And that was the case with autohotkey and power automate.
The solution in this two cases was the following:

Run, “C:\Program Files\obs-studio\bin\64bit\obs64.exe” , C:\Program Files\obs-studio\bin\64bit

So i had to set not only the file-path but a ?working directory? also!
Any ideas how to set this in UIPath?
How to start OBS studio?

Thanks in advance!
Ben

Hi,

How about the following steps?

First, make bat file as the following.

@echo off
cd "C:\Program Files\obs-studio\bin\64bit"
"C:\Program Files\obs-studio\bin\64bit\obs64.exe"

Next, run this bat to check if it works.

Then, put Use Application/Browser activity into design panel and choose OBS application.

Finally, modify application path to the path to the bat file.

Regards,

Thanks Yoichi!

A bit suprising solution but it works.
If i wrote the -bat file like this:

@echo off
cd "C:\Program Files\obs-studio\bin\64bit"
start obs64.exe
TIMEOUT /nobreak 5
exit

than it closes the cmd after 5 sec
So thanks again!

Im a but curious about is there any “official” solution for this “working directory problem”?!?
A bit strange to use batch file in 2021 with uipath. :slight_smile:

Hi,

In Studio (not StudioX), we can use StartProcess as the following.

Unfortunately, in studioX, there isn’t, at this time.
If we use developer activities in the latest StudioX, .net Process and ProcessStart class will work for it with Invoke Method activity etc. (But it’s a little bit complicated)

Anyway, I also hope it improves.

Regards,

1 Like

edit: i see you meant studioX. The example i gave was from Studio Pro. Sorry.
– image deleted

1 Like

Hey Yoichi!

That was the solution. So the uipath >> studio >> activities >> start process >> and there in deed you can give the working directory and the OBS studio opens without any errors!
Thank you!

Also: im very new to uipath so i confused studio and studiox … i use studio. So again , the solution was perfect!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.