Running a .bat file using start process


#1

Hi

If I want to run a bat file using Start Process, what would my input variables be? I guess Arguments would be the file path but what about FileName and WorkingDirectory?

Best regards,
Jan


#2

Hi @Langdeel,

Have a look here : https://forum.uipath.com/t/running-a-cmd-script/97/5?u=masire

Cheers.

Masiré


#3

Thanks Masire, but when I use the following input an empty cmd-prompt just opens up:
Arguments: filepath
FileName: “C:\windows\system32\cmd.exe”


#4

Hi, please attach the workflow to see what is happening.

Regards,
Masiré


#5

Hello!

If you just want to run a batch file, you only have to input the full path of the file (FileName property) and then execute. Automatically the Uipath will execute the file on the specified path.

Hope It helps!

Regards,


#6

That worked like a charm Lucas. Thank you very much!