home bbs files messages ]

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 68,427 of 68,980   
   Herbert Kleebauer to All   
   Re: Replace line in a txt file with miss   
   11 Jan 24 14:48:20   
   
   From: klee@unibwm.de   
      
   On 11.01.2024 14:25, Zaidy036 wrote:   
      
   > How do you run successfully without using the full paths to the files?   
   >   
   > My files are on F:\ so I use full path.   
      
   I don't have a F: so I put the text file in the same directory as the   
   batch file.   
      
   > Could you retest placing the files in another location and using full paths?   
      
   I now used d: instead of f:, works without any problem.   
      
      
   ::@echo off   
      
   FOR /F "USEBACKQ TOKENS=1,2 DELIMS=:" %%A IN ("D:\_NW-B.txt") DO (   
   IF "%%B"=="" ECHO %%A >> D:\_NW-N.txt)   
      
   --- 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