I’ve been fighting with exit codes in powershell scripts not always making it back correctly when deploying the scripts (I suspect they’re being swallowed by the cmd.exe), so I decided to try using the built-in “If specified file exists, goto” to replace one of my scripts.
The file is under the “Program Files (x86)” directory. When I query for the file existence using the Get information > Check if file exists function, it works just fine. However, when I try the same thing in the job queue, it fails. The message returns “File Existence: FALSE: C:\Program Files (x86 does not exist.”
It seems to have a problem with parenthesis. I’ve tried both with quotes and without, but no luck.
Any suggestions?