if好像只可以判断文件是否存在,可以判断目录马?
3x...
3x...
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
Microsoft Windows XP
(C) Copyright 1985-2001 Microsoft Corp.
C:\>cd test
C:\test>dir
Volume in drive C is PC COE
Volume Serial Number is 8483-D1E1
Directory of C:\test
10/16/2007 12:49 PM <DIR> .
10/16/2007 12:49 PM <DIR> ..
10/16/2007 12:49 PM 0 file.txt
10/16/2007 12:49 PM <DIR> folder
1 File(s) 0 bytes
3 Dir(s) 20,217,987,072 bytes free
C:\test>if exist folder echo yes
yes