- 此问题在此处已有答案**:
Windows batch os version check with if support(3个答案)
Script to check Windows version and then do action on only version 10.0 (2016 or greater)(3个答案)
Detect Windows version and run command according to version(1个答案)
Windows 9x/Me version in variable(1个答案)
十小时前关门了。
我想做一个批处理文件程序,可以与Windows 10及以后兼容。而不是与旧的Windows系统。
伪代码:
if Win10+ then
[insert continued code here]
else
echo We're sorry, but the program you are trying to run isn't compatible with your Windows OS version.
echo Minimal requirement: Windows 10 (or later)
请评论的代码,如果你有它。
我试过:
if "%version%" == "10.0" [continue the code]
else echo Not compatible
1条答案
按热度按时间7jmck4yq1#
也许您的batch-file可以使用powershell的帮助: