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,415 of 68,980    |
|    Zaidy036 to Herbert Kleebauer    |
|    Re: Replace line in a txt file with miss    |
|    10 Jan 24 12:14:19    |
      From: Zaidy036@air.isp.spam              On 1/10/2024 4:29 AM, Herbert Kleebauer wrote:       > On 10.01.2024 04:23, Zaidy036 wrote:       >> On 1/8/2024 8:21 PM, JJ wrote:       >       >       >> ---This one line in an Admin CMD window works:       >> FOR /F "TOKENS=1,2 DELIMS=:" %A IN (F:\_%_NN%NW-B.txt) DO (IF "%B"==" "       >> ECHO %A >> F:\_%_NN%NW-N.txt)       >       >       > Is _NN a variable and %_NN% its content or is the % in       > _%_NN%NW-N.txt part of the file name (you should never use       > a % in a file name. In a batch file you have to double the %.              That complication is so the batch can do multiple runs but still ID data       to review. I will simplify with "outside" run numbering and renaming       data files after the main part of the batch like:              SET _NN=0       :_DoIt       SET /A _NN=%_NN% + 1       [ batch cmds without %_NN% ]       [ REN F:\xxxx.xxx to %_NN%xxxx.xxx ]       [ run again will be manual using CHOICE GOTO _DoIt]              --- 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