home bbs files messages ]

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,109 of 42,547   
   Todd Vargo to z00t3r101@gmail.com   
   Re: batch to put files in to folder of s   
   27 Apr 15 10:33:18   
   
   From: tlvargo@sbcglobal.netz   
      
   On 4/27/2015 4:40 AM, z00t3r101@gmail.com wrote:   
   > Thanks Todd, and I am sorry for the bad example first time posting here.   
   >   
   > Todd that is 100% what I wanted, but alas Axel is correct in that I do not   
   ant the file extension to be part of the folder name if that is at all   
   possible i.e I have folder with 100 files eg.   
   >   
   > 1.txt 2.txt 3.txt etc. and I would like to be able to run the batch and it   
   creates a folder named 1 and moves the file 1.txt in to it if hat is possible.   
   >   
   > thanks again for your help it is much appreciated.   
      
   Change this line   
      
   	REN tempdir "%%f"   
      
   To this   
      
   	REN tempdir "%%~nf"   
      
   Then each folder will be the name of the file without extension.   
      
   --   
   Todd Vargo   
   (Post questions to group only. Remove "z" to email personal messages)   
      
   --- 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