Starting a file path from a Variable

Hi Everyone!

I’m creating a process and by that I needed to start an application.

So this is the situation. I stored the file path of the application to a string variable

I want to open the application using start process and use that variable but I’m getting an error that the file can’t be found.

If I paste the link directly its working however when I use the value in the variable its not. I verified that the string value of the link inserted in the variable is correct but start process still not working.

Please help me

thank!

Hi Alvin,

Could you provide the workflows that you’ve got an issue with? I can have a look into it.

Cheers,
Josh

@alvin.c.apostol26,

I guess that start process should open an application/file, I did the same. please see a attached snapshot,

Start%20App

Cheers,
Pankaj

Hi Thanks for your time in responding on my concern,

I still get the error. Please see the uploaded image

@alvin.c.apostol26

I think your path having some spaces so please given like this

Path = """D:\Uipath\...."""

Use three quotes in the string to get the exact path from the variable.

Thanks,
Pradeep Sridharan

@alvin.c.apostol26,

I think your path does not contain file name with file extension(Main.xaml). please check the path again OR print path in message box and show that box to us like you showed us an exception.

Cheers,
Pankaj

@alvin.c.apostol26

See the xaml it is working for me

Main.xaml (4.3 KB)

Thanks,

Pradeep Sridharan

1 Like

Hi guys thank you for your help.

I got it now the problem is in the data I’m working with.

its working now

thanks!

2 Likes