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,764 of 42,547    |
|    Todd Vargo to ehabaziz2001@gmail.com    |
|    Re: if statement    |
|    24 Sep 13 18:03:07    |
      From: tlvargo@sbcglobal.netz              On 9/24/2013 2:01 PM, ehabaziz2001@gmail.com wrote:       > I can not find that code is working . It yields bad syntax ??       >       >       > @%pathscripts%\set_cert_file.bat ::contains set_cert_file=value       >       > @if %set_cert_file%!=""       > (       > echo " I am in cert has value"       > )       >              You need to double the = for correct syntax or use EQU. However, even if       %set_cert_file% was set to contain "", it will never be true because the       left side has the ! but the right side does not.              Type IF/? at prompt more information.              --       Todd Vargo       (Post questions to group only. Remove "z" to email personal messages)              --- 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