标签:PowerShell

PowerShell比较文件内容,不相等时拷贝新文件

使用PowerShell比较2个文件内容的hash(采用MD5) $src = “C:\Users\x\Desktop\更新版本\update.txt” $dest = “C:\Users\x\Desktop\dest\update.txt” $hashSrc = Get-FileHash -Path $src……

XP系统 VS2010 NuGet 提示需要PowerShell 2.0

之前程序在VS2012开发使用过程中一切正常,换了一台XP系统电脑,环境VS2010,使用NuGet时出现错误:Error: The Package Manager Console requires PowerShell 2.0 runtime, which is not detected on this machine. Please install th……