Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by Delta7428
at 2024-11-25 10:07:54
Point:500 Replies:11 POST_ID:828826USER_ID:11738
Topic:
MS DOS;;
A file system on a server shows that it is dangerously close to running out of free space. It contains many directories, which in turn contain many more sub-directories. How to find what files(s) are taking up the most space?
Author: Delta7428 replied at 2024-11-25 12:26:59
Awesome. Thanks Steve
Expert: dragon-it replied at 2024-11-25 12:17:14
If you did want a batch or VBScript way without a tool, and personally I'd use treesize... I have two scripts of mine here:
http://scripts.dragon-it.co.uk/links/batch-biggest-files-in-folders
http://scripts.dragon-it.co.uk/links/vbscript-biggest-files-in-folders
Steve
http://scripts.dragon-it.co.uk/links/batch-biggest-files-in-folders
http://scripts.dragon-it.co.uk/links/vbscript-biggest-files-in-folders
Steve
Author: Delta7428 replied at 2024-11-25 11:03:18
Thanks!
Accepted Solution
Expert: LectricX replied at 2024-11-25 10:57:23
300 points EXCELLENT
du -h FOLDERNAME
works in a linux command line. But there's no such answer for DOS.
works in a linux command line. But there's no such answer for DOS.
Assisted Solution
Expert: Bill Prew replied at 2024-11-25 10:47:28
100 points EXCELLENT
There really isn't any good or efficient way to do this from a DOS command or BAT script. There is no single command that will report the size of a folder, including all files and subfolders under it. And DOS only has 32 bit precision in it's math functions, so you can't do a lot of calculating yourself with numbers that are as large as file systems, etc.
Powershell (and even VBS scripts) has a lot more power here, but that would be a different set of skills you'd have to acquire it sounds like.
In the DOS world, leveraging an existing utility is about the best way, otherwise you'd be writing some very large and tricky BAT scripts that wouldn't really be that useful anyway.
The only other way to approach this would be to leverage Windows WMIC command line utility to search the entire filesystem for files larger than some size, like larger than 1GB or something. And then work from the result list.
~bp
Powershell (and even VBS scripts) has a lot more power here, but that would be a different set of skills you'd have to acquire it sounds like.
In the DOS world, leveraging an existing utility is about the best way, otherwise you'd be writing some very large and tricky BAT scripts that wouldn't really be that useful anyway.
The only other way to approach this would be to leverage Windows WMIC command line utility to search the entire filesystem for files larger than some size, like larger than 1GB or something. And then work from the result list.
~bp
Author: Delta7428 replied at 2024-11-25 10:30:41
Well ... My first thought is also to use an app.
I am being asked this question ofnan interview questionnaire. The job will be mostly SQL related, thank goodness.
The question is presented to be solved in Linux or DOS - optional. Interviewer is assuming I will use Dos as I have some very limited experience.
I am thinking I should provide some way of doing something command line, with the recommendation of using one of these apps. I will take a look at them.
If you could provide something command line that would at least show it could be done, that would be great.
I am being asked this question ofnan interview questionnaire. The job will be mostly SQL related, thank goodness.
The question is presented to be solved in Linux or DOS - optional. Interviewer is assuming I will use Dos as I have some very limited experience.
I am thinking I should provide some way of doing something command line, with the recommendation of using one of these apps. I will take a look at them.
If you could provide something command line that would at least show it could be done, that would be great.
Expert: rl3 replied at 2024-11-25 10:27:28
treesize!!!
Assisted Solution
Expert: Gareth Gudger replied at 2024-11-25 10:19:48
25 points EXCELLENT
A trial of TreeSizePro is the best at this sort of thing.
http://www.jam-software.com/treesize/
However, if you are really low on space a small self contained executable such as SpaceMonger.exe will also do the trick.
http://download.cnet.com/SpaceMonger/3000-2248_4-10050288.html
http://www.jam-software.com/treesize/
However, if you are really low on space a small self contained executable such as SpaceMonger.exe will also do the trick.
http://download.cnet.com/SpaceMonger/3000-2248_4-10050288.html
Assisted Solution
Expert: duncanb7 replied at 2024-11-25 10:18:17
25 points EXCELLENT
it might be you need this that you can download disksum utility execute code and copy it into your system32 directory and please make sure it can be used globally in any path in
order to find the largest file size
Download path:
http://stereopsis.com/disksum/
Hope I understand your question completely, if not please point it out
Duncan
order to find the largest file size
Download path:
http://stereopsis.com/disksum/
Hope I understand your question completely, if not please point it out
Duncan
Assisted Solution
Expert: WebDevEM replied at 2024-11-25 10:17:48
25 points EXCELLENT
Hi,
There are a lot of programs out there to run a report on where your disk space is used - one that I use often is TreeSize (http://www.jam-software.com/treesize_free/. It doesn't run continuously in the background to monitor space, but runs as-needed and gives good reports.
Hope it helps,
WebDevEM
There are a lot of programs out there to run a report on where your disk space is used - one that I use often is TreeSize (http://www.jam-software.com/treesize_free/. It doesn't run continuously in the background to monitor space, but runs as-needed and gives good reports.
Hope it helps,
WebDevEM
Assisted Solution
Expert: LectricX replied at 2024-11-25 10:17:23
25 points EXCELLENT
To quote an advertisement, there's an app for that.
The best ones I would recommend are:
WinDirStat: http://windirstat.info/
SpaceMonger: (I prefer the free old one) http://www.sixty-five.cc/download/
Tap the "Free Software" and scroll down to 1.4
These will show you graphically where your space on your drives is going.
Good Luck.
The best ones I would recommend are:
WinDirStat: http://windirstat.info/
SpaceMonger: (I prefer the free old one) http://www.sixty-five.cc/download/
Tap the "Free Software" and scroll down to 1.4
These will show you graphically where your space on your drives is going.
Good Luck.