Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 40,767 of 42,547    |
|    Herbert Kleebauer to foxidrive    |
|    Re: if statement    |
|    25 Sep 13 08:59:03    |
      From: klee@unibwm.de              On 25.09.2013 01:41, foxidrive wrote:       > On 25/09/2013 09:30, foxidrive wrote:       >> The parenthesis has to be on the same line, also.       >>       >       > I realise now why the ! was there. You seem to want this syntax...       >       > if not "%set_cert_file%"=="" (       > echo "I am in cert has value"       > )              And don't forget to use "call" to execute the       second script:              ::contains set_cert_file=value       call %pathscripts%\set_cert_file.bat              if not "%set_cert_file%"=="" (        echo "I am in cert has value"        )              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca