App![]() |
|
NOTE |
This version dosen't check arguments. The only assumption is if you dosen't pass any argument, it uses the current directory. |
Calculate the space used by the directory
Constructor
Main process
ULONG dirSpace( int showmode, LPTSTR s ) |
|
Calculate the space used by the directory.
Parameters | |
showmode | it could be SHOW -to show the information of each file/directory it inspects- or NOSHOW -silent mode. |
s | specify the directory to inspect. |
Return | |
the space the direcotry use. |
duApp( DWORD argc, LPTSTR argv[] ) |
|
Constructor.
It receives and initializes the program parameters.
Parameters | |
argc | paramaters count (or argv size). |
argv | parameters vector; [0] is the command name, [1] is the first command line parameter, and so on. |
int run( ) |
|
Main process.
It parses the parameters and call dirSpace().
See also | duApp::dirSpace |