Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 41,553 of 42,547    |
|    Herbert Kleebauer to Jean-Pierre Coulon    |
|    Re: How can I cause "?" to represent rea    |
|    12 Aug 17 11:29:41    |
   
   From: klee@unibwm.de   
      
   On 12.08.2017 10:19, Jean-Pierre Coulon wrote:   
   > On Fri, 11 Aug 2017, Herbert Kleebauer wrote:   
   >   
   >> dir /b |findstr "p...[.]tif"   
   >   
   > Sorry, it works with Windows XP. But instead of dir, can it work with COPY   
   > or can the result be the argument of another command? e.g. how can I limit   
   > 7za a mychunk.zip p*.tif to tif files with exactly 3 characters in the   
   > "*"?   
      
   I'm not sure what exactly you want to do. The following code   
   moves all tif files with 3 characters between "p" and ".tif"   
   to the directory "temp".   
      
   @echo off   
   mkdir temp   
   for /f %%i in ('dir /b *.tif ^|findstr "p...[.]tif"') do move %%i temp   
      
   --- 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