|  | 
| 原帖由 2011275081672 于 2011-10-21 00:21 发表  for %%t in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist %%t:\WINDOWS set s=%%t
 
 if exist %s%:\windows\123 (goto  b) else (goto a)
 
 :a
 md %s%:\windows\123
 
 :b
 shutdown -s
 ...
 
 对了,DOS下还有shutdown -s 吗?
 你找个关机命令工具吧,名称自己改的,像 off关机   或者 输入 s  就关机!有这么一个工具,DOS下可不存在shutdown -s命令
 
 
 先问下,你的%%t:\WINDOWS盘是FAT32格式的吗?
 如果是FAT32 :    (off是关机程序)
 for %%t in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist %%t:\windows\123 off
 md %s%:\windows\123
 
 如果是NTFS:
 NTFSDOS
 for %%t in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist %%t:\windows\123 off
 md %s%:\windows\123
 
 
 假设是未知FAT32还是NTFS (又或者即存在FAT32又有NTFS)
 你可以使用
 NTFSDOS
 for %%t in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist %%t:\windows\123 off
 md %s%:\windows\123
 没什么问题的
 
 [ 本帖最后由 bbsphixy 于 2011-10-22 23:44 编辑 ]
 | 
 |