- 博客(2)
- 收藏
- 关注
原创 批处理和Powershell判断系统位数的几种方法
批处理判断语句方法一:判断%processor_architecture%if /i "%processor_architecture%"=="x86" (echo 32位) else (echo 64位)echo %processor_architecture% | find "86" >nul && if %errorlevel% equ 0 echo 32 Bitecho %processor_architecture% | find "64" >nul &am
2021-11-17 10:08:33
948
原创 Powershell-创建当前用户桌面快捷方式
$shell = New-Object -ComObject WScript.Shell$desktop =[System.Environment]::GetFolderPath('Desktop')$shortcut = $shell.CreateShortcut("$desktop\test.lnk")$shortcut.TargetPath = "C:\Program Files\Everything\Everything.exe"$shortcut.IconLocation = "C:\Pr
2021-11-17 09:35:56
896
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人