i have written something like:
if not (%1) == () (
if not %1 == "" (set SENDER=%1))
but it doesn't work, it's invalid if statement
This one is tricky - it took a minute to figure out. Even though it
appears that the blank condition of the replaceable parameter, %1, is
being tested; the syntax of the second part of your compound statement
is being parsed, anyway. This is because the command processor is a
single pass processor and the parentheses make the multiple lines a
single statement (all of which is evaluated at one time). Therefore,
if %1 is empty, a syntax error results.
Try something like this ...
if not (%1) == () (
if not [%1] == [""] (set SENDER=%1))
Tom Lavedas
===========
http://members.cox.net/tglbatch/wsh/