Launch setup.exe from files\subfolder

Hi there,

Is there a way of launching a setup.exe located in a subfolder to the files folder?

I have tried

Execute-Process -Path ‘$dirfiles\img\setup.exe’
Execute-Process -Path ‘\img\setup.exe’
Execute-Process -Path ‘.\img\setup.exe’

All of them failing with this error.

The term ‘.\Img\setup.exe’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Is there a way to do this?



What happens is you use double quotes instead of single. “$dirFiles\img\setup.exe”


You just saved my day :wink: