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 67,358 of 68,980   
   dr.j.r.stockton@gmail.com to All   
   To stop XCOPY asking F or D in batch?   
   24 Jan 19 12:25:58   
   
   I run a batch program (Windows 10 usually; could be earlier maybe)   
   which uses XCOPY (I cannot use COPY, as XCOPY's /D is needed).   
      
   I use   
     FOR /F "eol=; tokens=1*" %%J IN ... (   
       ...   
       XCOPY /D /Y %%J  %unto%%%J %%K | FIND /v " File(s) copied"   
       )   
      
   After various enhancements, it now sometimes asks whether the   
   name on the destination should be a file or a directory, but   
   without the (F = file, D = directory)? - I expect the FIND /v   
   eats that.   
      
   Is there a good way to eliminate that question, and choose   
   file every time?  Nothing shown by FIND /? seems suitable,   
   but ICBW.  I can answer it "blind", but that's not nice.   
      
   This is an example of what I mean, I think :-   
       Prompt>xcopy pascal.htm e:fred.kk   
       Does E:fred.kk specify a file name   
       or directory name on the target   
       (F = file, D = directory)?   
      
   --   
     (c) John Stockton, near London, UK.  Using Google Groups.           |   
    Mail: J.R.""""""""@physics.org - or as Reply-To, if any.             |   
      
   --- 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