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,816 of 68,980    |
|    JJ to Tom Del Rosso    |
|    Re: FOR variable shows size of folder...    |
|    04 Aug 24 17:49:02    |
      From: jj4public@outlook.com              On Sat, 3 Aug 2024 21:08:01 -0400, Tom Del Rosso wrote:       > 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.              Odd... I can't reproduce the problem in my system. Any folders always give       empty size. Remote or not. Mapped or not.              But for unknown reason, your remote folder is also seen as a file.              Technically, the data of a folder is the list of files/subfolders of a       folder. i.e. the file/folder names, timestamps, attributes, security       attributes (if NTFS), starting cluster number, etc. So, that 12,288 bytes       size would likely be the size of the list rounded up by disk cluster size.              --- 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