執行環境:windows server 2012 r2
這裡有個問題,雖說可以靜默安裝,但是未對當前系統檢測是否已安裝vc++補丁,望大佬指點
# author:lttr# date:2019-08-09
# 自動安裝
set-executionpolicy -force remotesigned
# 獲取當前指令碼絕對路徑
$path = split-path -parent $myinvocation.mycommand.definition;
$net = "
\vcredist_x64.exe";
set-location $path;
function show-progress ($file, $arguments)
else
break
} }
}}function installnet ($filepath,$filename)
else
}installnet $path $net
powershell 自動編譯發布
build fun.ps1 function global copy bin src,dest,buildtype function global build visualstudiosolution solutionfilepath,configuration,cleanfirst,platfor...
Powershell使用管道
管道並不是什麼新事物,以前的cmd控制台也有重定向的命令,例如dir more可以將結果分屏顯示。傳統的cmd管道是基於文字的,但是powershell是基於物件。ps ls sort object descending name select object name,length,lastwrit...
Powershell使用管道
管道並不是什麼新事物,以前的cmd控制台也有重定向的命令,例如dir more可以將結果分屏顯示。傳統的cmd管道是基於文字的,但是powershell是基於物件。ps ls sort object descending name select object name,length,lastwrit...