Syntax problem while running process from batch file

Hi Guys,

I want to run a process from a batch file, but it won’t work. CMD keeps telling me there’s a syntax error in the xaml file I want to run. I want to run it from a shared network folder, and I’m just wondering if that might be the problem? I’m 100% sure that the path is correct.

Here’s the batch file:

"C:\Program Files (x86)\****\UiPath\Studio\UiRobot.exe"
/file:"Z:\*****\_Mijn Documenten\UiPath\UAT opleiding\UAT opleiding\Main.xaml"

The Z:\ is a replacement for the UNC path, which I’ve also tried to include, but I keep getting syntax errors. Has anyone encountered this before?

If you run the workflow in debug mode, you can find out which activity has syntax error.

My guess is some thing wrong with the path, can you double check with the path using msgbox.

I believe you are supplying extra back slash ‘’ in the path e.g C:\ --> C:\