Executing an EXE file using a PowerShell script

前端 未结 5 1959
粉色の甜心
粉色の甜心 2020-11-29 20:30

I\'m trying to execute an EXE file using a PowerShell script. If I use the command line it works without a problem (first I supply the name of the executable and series of p

5条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 21:21

    In the Powershell, cd to the .exe file location. For example:

    cd C:\Users\Administrators\Downloads

    PS C:\Users\Administrators\Downloads> & '.\aaa.exe'

    The installer pops up and follow the instruction on the screen.

提交回复
热议问题