嗨,我创建了一个启动中心故障排除应用程序的工具,但我最近创建了另一个工具ps1文件,我似乎无法从另一个工具启动它。
function LaunchQuickNotes {
try {
Start-Process -filePath "\\c\s\CAF1\ITSC Second Line Support\Craig Heckles Team\GUI\Admin Tool\QuickNotes Tool\QuickNotes tool - Tier 1.ps1" -
LogWrite "Quick Notes launched"
}
catch {
$wshell = New-Object -ComObject Wscript.Shell
$wshell.Popup("Unable to launch Quick Notes.",0,"Error",0)
}我似乎只是打开.txt文件,而不是在powershell中启动。
任何建议
发布于 2018-11-13 13:44:06
而不是
Start-Process -filePath "\\c\s\CAF1\ITSC Second Line Support\Craig Heckles Team\GUI\Admin Tool\QuickNotes Tool\QuickNotes tool - Tier 1.ps1" -试一试
powershell.exe -f "\\c\s\CAF1\ITSC Second Line Support\Craig Heckles Team\GUI\Admin Tool\QuickNotes Tool\QuickNotes tool - Tier 1.ps1"https://stackoverflow.com/questions/53282049
复制相似问题