Invoke VbScript option is not working for SAP

Hi All,

This issue seems to be caused by spaces in the file path. Directories with spaces return exception “There is no file extension in …” whereas the same script but put in a directory without spaces is executed properly

image

the only difference between the two invokes is folder name (first without spaces and second with spaces). Configuration and content of both vbs files is the same.

First execution (no spaces) returns no output message and the procedure is successfully executed
Second one, on the other hand, returns the error I mentioned above

I tried to escape the characters (https://www.howtogeek.com/694949/how-to-escape-spaces-in-file-paths-on-the-windows-command-line/) but in all cases I get a similar exception (file cannot be located)

@loginerror, @Pablito - is there any bespoke way of escaping spaces for that activity?

activity: UiPath.Core.Activities.InvokeVBScript
parameter: VBScriptFileName

BR,
Filip