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,428 of 68,980    |
|    Zaidy036 to Herbert Kleebauer    |
|    Re: Replace line in a txt file with miss    |
|    11 Jan 24 09:12:28    |
   
   From: Zaidy036@air.isp.spam   
      
   On 1/11/2024 8:48 AM, Herbert Kleebauer wrote:   
   > 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)   
   >   
   Thanks.   
      
   I copied your command string into a batch with only that to run. Changed   
   D: to F: and it crashed in both non-Admin and Admin modes.   
      
   I guess it is time to SFC even though all my other programs and batches   
   run fine.   
      
   --- 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