Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 67,526 of 68,980    |
|    Herbert Kleebauer to dcwhatthe@gmail.com    |
|    Re: findstr with backslashes representin    |
|    04 May 20 21:47:20    |
      From: klee@unibwm.de              On 04.05.2020 17:58, dcwhatthe@gmail.com wrote:       > Hi,       >       > I'm having problems getting findstr to understand the output folder name.       >       > When running findstr, it's interpreting the WORKINGFOLDER as       >       > 1>"WorkingFolder"\       >       >       > Rem ***********************************rem Set the base name of the CSV and       PDF files.       > SET BASENAME=THISBASENAME       >       > SET MAINFOLDER=v:\ROOT\SECOND\THIRD\MAIN FOLDER       >       > SET WORKFOLDER=v:\ROOT\SECOND\THIRD\MAIN FOLDER\WORKING FOLDER       >       > @echo on       > Rem Remove blanks from .CSV file, and       > Rem rename from .TXT to .CSV       > findstr . "%MAINFOLDER%"\\%BASENAME%.TXT > "%WORKFOLDER%"\\%BASENAME%.CSV       >       > pause       >       > Rem ***********************************       >       > So, it interprets the above findstr line as something like       >       >       > findstr . "v:\ROOT\SECOND\THIRD\MAIN FOLDER"\\THISBASENAME.TXT        1>"WorkingFolder"\\THISBASENAME.CSV              If I run your code I get:               findstr . "v:\ROOT\SECOND\THIRD\MAIN FOLDER"\\THISBASENAME.TXT        1>"v:\ROOT\SECOND\THIRD\MAIN FOLDER\WORKING FOLDER"\\THISBASENAME.CSV              --- 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