How to quote special characters in run() function

Thank you for suggestion of using pipeline function to escape >>.
However, problem persists if trying to use . or * in main command, e.g: attrib –r folder*.* /s

Having done some research:

    1. As per Can't run local command on Windows - #4 by pfack, have also tried: run(`powershell -Command "<command>"`) , for error again.
    1. Seems like if special chars are arguments of command, Julia’s inbuilt escaping will take care of issue. E.g: inbuilt shell_escape function.
      But if is part of main command (first parameter), escaping is not possible.
    1. So even if wrapping . and * in quotation marks to snooze Julia REPL error, Windows PowerShell will complain about received input.
2 Likes