
Signature
Dean Wells [MVP / Directory Services]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l
On 6月19日, 下午10时14分, "Dean Wells \(MVP\)"
<dwe...@maskmsetechnology.com> wrote:
> >i have written something like:
> > if not (%1) == () (
[quoted text clipped - 12 lines]
> [[ Please respond to the Newsgroup only regarding posts ]]
> R e m o v e t h e m a s k t o s e n d e m a i l
thanks for you help, i'm trying to make sure the parameter that passed
to my batch file isn't empty nor ""
Al Dunbar - 20 Jun 2008 06:13 GMT
On 6ÔÂ19ÈÕ, ÏÂÎç10ʱ14·Ö, "Dean Wells \(MVP\)"
<dwe...@maskmsetechnology.com> wrote:
> "thinktwice" <memorial...@gmail.com> wrote in message
>
[quoted text clipped - 16 lines]
> [[ Please respond to the Newsgroup only regarding posts ]]
> R e m o v e t h e m a s k t o s e n d e m a i l
thanks for you help, i'm trying to make sure the parameter that passed
to my batch file isn't empty nor ""
try this, then:
if "%~1" EQU "" (
echo/first parameter is either empty (null, missing) or ""
) else (
echo/an actual non-null value was passed as the first parameter.
)
This can sometimes be useful too:
(set _param=%~1)
if defined _param (
echo/an actual non-null value was passed as the first parameter.
) else (
echo/first parameter is either empty (null, missing) or ""
)
/Al