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 41,594 of 42,547    |
|    Klaus Meinhard to All    |
|    Re: IF command problem    |
|    04 Nov 17 10:41:15    |
      From: k_meinhard@gmx.de              Hallo mateusbaltazar9@gmail.com,              >> Hi, I'm trying to learn the IF command but I can't get the       >> following demo batch file to work.              1. Problem: does your batch have access rights to the windows (=system!)       directory? You probably have to start your cmd.com instance elevated.              2. Problem: Put these lines on one line and add a backslash:       if exist c:\windows\test\ goto end              3. Problem: if the above test fails, Windows will report "folder exists"       anyway, as directed by you :-)                     The folder "test" does not       >> exist, but yet the batch file always echoes "folder exists" and the       >> test folder never gets created.                     --       Mit freundlichen Grüßen,              Klaus Meinhard              --- 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