Launch setup.exe from files\subfolder

//Launch setup.exe from files\subfolder
Launch setup.exe from files\subfolder 2018-04-18T12:32:49+00:00

The Toolkit Forums General Launch setup.exe from files\subfolder

  • Author
    Posts
  • Jesper
    Participant
    Post count: 3

    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?

    Regards

    /Jesper

  • Brian
    Participant
    Post count: 6

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

  • Jesper
    Participant
    Post count: 3

    THANKS!!!!

    You just saved my day 😉

You must be logged in to reply to this topic.