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,814 of 68,980   
   Tom Del Rosso to All   
   FOR variable shows size of folder...some   
   03 Aug 24 21:08:01   
   
   From: fizzbintuesday@that-google-mail-domain.com   
      
   Weirdness...   
      
   This happens in a batch and also at the command prompt:   
      
   for %a in (C:\CAS) do echo %~Za   
   0   
      
   The above is consistent.   
   This is not:   
      
   for %a in (\\e1\BU1\20240714\C\CAS) do echo %~Za   
   12288   
      
   But it says 0 the first time...sometimes.   
      
   So network folders have this size value that FOR sometimes shows.   
      
   It's not a problem for me because I don't need the number, but I wonder   
   what the number means. It is not the size of any file in the folder, and   
   it doesn't seem conssitent with what the space occupied by the folder   
   itself should be.   
      
      
   --   
   Defund the Thought Police   
      
   --- 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