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 68,128 of 68,980   
   R.Wieser to All   
   Re: Copying to SD card sequentially   
   26 Oct 23 08:43:40   
   
   From: address@is.invalid   
      
   JJ,   
      
   > For Windows, there are tools for sorting directory entries   
   > in FAT drives.   
      
   A tool for sorting a directory ?   For something that a small batch script   
   can do as wel ?   
      
   1) Move the to-be-sorted files to a temp directory (on the same drive*)   
      
   2) Create a sorted list of the files in the temp directory   
      
   3) Read the sorted list and move the files one-by-one back to the origional   
   directory   
      
   * moving on the same drive just moves the metadata, not the contents of the   
   file.   
      
   Total number of lines in the batch file : 7, if you include creating and   
   removing the temp directory.   
      
   If you want to have the folders at the top (File Explorer style) it only   
   takes a single extra line.   
      
   Regards,   
   Rudy Wieser   
      
   --- 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