PowerShel程序执行完后删除脚本自身的方法

2019-09-30 11:00:14于丽

当脚本执行完成后,可以删除自身


#删除脚本自身
remove-item $MyInvocation.MyCommand.Path -force