联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off for /f "skip=1 tokens=3" %%a in ('wmic os get caption') do ( if /i "%%a"=="xp" start "" "d:\1.txt" ) pause
Originally posted by oilio at 2007-6-20 04:17 PM: 我写的批处理比较糙,大家可千万不要笑话我啊,各位朋友帮我完善一下。这个是判断系统是否为xp,如果是的话,就运行D盘下的1.txt文件,我在我机 ...
Originally posted by joshualaw at 2007-6-20 09:29 PM: 在WIN2K下无wmic,在那可得到
Originally posted by joshualaw at 2007-6-22 07:34: 在XP 也下无wmic,在那可得到
Microsoft Windows XP (C) Copyright 1985-2001 Microsoft Corp. C:\>wmic /? <command> The following global switches are available: /NAMESPACE Path for the namespace the alias operate against. /ROLE Path for the role containing the alias definitions. /NODE Servers the alias will operate against. /IMPLEVEL Client impersonation level. /AUTHLEVEL Client authentication level. /LOCALE Language id the client should use. /PRIVILEGES Enable or disable all privileges. /TRACE Outputs debugging information to stderr. /RECORD Logs all input commands and output. /INTERACTIVE Sets or resets the interactive mode. /FAILFAST Sets or resets the FailFast mode. /USER User to be used during the session. /PASSWORD Password to be used for session login. /OUTPUT Specifies the mode for output redirection. /APPEND Specifies the mode for output redirection. /AGGREGATE Sets or resets aggregate mode. /AUTHORITY Specifies the <authority type> for the connection. /? Usage information. For more information on a specific global switch, type: switch-name /?