简体   繁体   中英

Winver command anomalous behavior in batch file

I've a batch file that has only single command in it.

winver

When I execute this batch file, nothing shows up but the command seems to execute in an uncontrolled loop.

But when I type winver in command prompt, a window opens that shows up the version of the Windows OS I'm currently using. My question is why isn't this command working when I place it in batch file.

Thanks in advance

Use as batch file name different from "winver.bat" with the single line "start winver". Regards, Erich

以管理员权限运行它解决了这个目的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM