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,825 of 68,980    |
|    JJ to John Stockton    |
|    Re: Problem with file copying in Batch    |
|    06 Nov 21 19:46:24    |
      From: jj4public@gmail.com              On Thu, 4 Nov 2021 15:30:11 -0700 (PDT), John Stockton wrote:       > In this code, the echo lines are merely for debugging       >       > @echo FOR /F "eol=; tokens=*" %%J IN (ZZZ\ZZZZ.TXT) DO (       > FOR /F "eol=; tokens=*" %%J IN (ZZZ\ZZZZ.TXT) DO (       > @echo TRYING : Xcopy /F %%J ZZZ\%%J       > Xcopy /F %%J ZZZ\%%J       > @echo.       > )       >       > That works, except that every time Xcopy is called, I get, on-screen,       >       > "Does C:\MYSLIDES\ZZZ\33-xxxiii\11.jpg specify a file name       > or directory name on the target       > (F = file, D = directory)?"       >       > An answer of F works, but I don't want to be asked; there may be over 100       calls. I've tried XCOPY /?, but cannot recognise a suitable option.       >       > What should I do?              You're basically copying one file at a time based on a list of file names       with relative path. Use `copy /y` instead of using the XCOPY program. XCOPY       is intended for recursive copy.              --- 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