可以在控制台中加载$psise对象吗?
我想在ISE中打开几个文件,但正在进行
>ise filename
>ise filename2
打开第一个。在ISE中,我没有这个问题,因为我使用$psise对象来打开文件
function qwe($file){
if(-not (Test-Path $file)){
New-Item -Name $file -ItemType file
}
$filepath = Resolve-Path $file;
$psISE.CurrentPowerShellTab.Files.Add($filepath)
}