skip to main
|
skip to sidebar
乡下大哥
2008-03-21
如何在DOS批处理中判断一个参数是否存在
比如,要判断第一个参数是否存在(实际上如果第一个参数不存在,说明批处理文件在运行时没有带任何参数)
if "x%1"=="x" goto Usage
goto Out
:Usage
echo usage: %0 parameter
:Out
其他第n个参数(%n)类似。
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Links
乡下大哥(MSN/Live Spaces)
Blog Archive
►
2014
(2)
►
December
(2)
►
2011
(3)
►
January
(3)
►
2010
(78)
►
December
(2)
►
November
(12)
►
October
(3)
►
September
(14)
►
August
(6)
►
July
(2)
►
June
(2)
►
May
(4)
►
April
(6)
►
March
(7)
►
February
(10)
►
January
(10)
►
2009
(188)
►
December
(20)
►
November
(18)
►
October
(9)
►
September
(27)
►
August
(18)
►
July
(20)
►
June
(27)
►
May
(27)
►
April
(18)
►
March
(2)
►
February
(1)
►
January
(1)
▼
2008
(63)
►
November
(3)
►
September
(4)
►
August
(12)
►
July
(11)
►
June
(4)
►
May
(4)
►
April
(10)
▼
March
(9)
Google 黑板报 -- Google 中国的博客网志: 与谷歌机器人的第一次约会:标头和压缩
鼩鼱(鼠句鼠青)
IE7
用Fireofx打开Ctrip.com出现Bad Request
如何在DOS批处理中判断一个参数是否存在
化学反应公式
<a href="javascript:
del.icio.us vs Google Bookmarks
EMS
►
February
(2)
►
January
(4)
►
2007
(44)
►
December
(2)
►
November
(4)
►
October
(4)
►
September
(4)
►
August
(5)
►
July
(7)
►
June
(2)
►
May
(9)
►
April
(2)
►
March
(3)
►
February
(1)
►
January
(1)
►
2006
(30)
►
December
(5)
►
November
(3)
►
October
(10)
►
September
(10)
►
August
(1)
►
January
(1)
►
2005
(4)
►
December
(1)
►
November
(3)
►
2002
(1)
►
June
(1)
►
2001
(2)
►
December
(1)
►
November
(1)
►
2000
(1)
►
July
(1)
►
1999
(1)
►
May
(1)
About Me
乡下大哥
View my complete profile
No comments:
Post a Comment