Toon posts:

[BATCH] Directory size

Pagina: 1
Acties:

Verwijderd

Topicstarter
als ik mijn dirsize.bat intik, wil ik de directory size in Mb's echoen van c:\backup

hoe doe ik dit in batch

  • Engineer
  • Registratie: Juni 2001
  • Laatst online: 04-05 00:03

Engineer

Software

.

[ Voor 91% gewijzigd door Engineer op 14-10-2018 09:36 ]


Verwijderd

Topicstarter
tuurlijk wel

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

Op donderdag 20 december 2001 13:12 schreef lisson01 het volgende:
tuurlijk wel
:{ Wat is dat nou weer voor reply :?

Kan volgens mij ook niet.

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


Verwijderd

Kan niet echt zonder hulpprogramma's te gebruiken die dat dan voor je doen ;)

  • Onno
  • Registratie: Juni 1999
  • Niet online
Met 'for', 'dir', en 'find' moet je een heel eind komen hoor. :)

('for' heb je overigens alleen in NT/W2k/XP, niet in 9x)

  • TheRookie
  • Registratie: December 2001
  • Niet online

TheRookie

Nu met R1200RT

Weet niet wat je OS is, maar in de NT resource kit zit een "diruse" tooltje dat precies doet
wat je wil :)
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
DIRUSE displays a list of disk usage for a directory tree(s).
Version 1.20

DIRUSE [/S | /V] [/M | /K | /B] [/C] [/,] [/Q:# [/L] [/A] [/D] 
[/O]] [/*] DIRS

/S  Specifies whether subdirectories are included in the output.
/V  Output progress reports while scanning subdirectories.
      Ignored if /S is specified.
/M  Displays disk usage in megabytes.
/K  Displays disk usage in kilobytes.
/B  Displays disk usage in bytes (default).
/C  Use Compressed size instead of apparent size.
/,  Use thousand separator when displaying sizes.
/L  Output overflows to logfile .\DIRUSE.LOG.
/*  Uses the top-level directories residing in the specified DIRS
/Q:#    Mark directories that exceed the specified size (#) with a "!".
    (If /M or /K is not specified, then bytes is assumed.)
/A  Specifies that an alert is generated if specified sizes are
      exceeded.
    (The Alerter service must be running.)
/D  Displays only directories that exceed specified sizes.
/O  Specifies that subdirectories are not checked for specified size
    overflow.
DIRS    Specifies a list of the paths to check.

Note:   Parameters can be typed in any order. And the '-' symbol 
      can be
    used in place of the '/' symbol.

    Also, if /Q is specified, then return code is ONE
      if any directories are found that
    exceed the specified sizes.  Otherwise the return code is ZERO.

Example: diruse /s /m /q:1.5 /l /* c:\users

HTH

edit:

layout |:(
Pagina: 1