怎样把powershell脚本和相关文件一起打包成exe程序

土豆烧鸡 40 Reputation points
2024-01-26T01:32:20.8933333+00:00

请教,怎样把powershell脚本和相关文件一起打包成exe文件,在其他电脑上,直接双击运行,生成的新文件,自动放在exe文件所在的目录? 谢谢!

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-01-26T03:24:19.3666667+00:00

    Hi 土豆烧鸡,

    Please see if the ps2exe module meets your needs.

    https://www.powershellgallery.com/packages/ps2exe/1.0.13

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.