Get Total No of Files and Total File Size in DVD/CD Media

Few months ago, I was preparing some statistics for data migration.

All data are stored in the DVD disc and I need to calculate total no of files and total data size capacity of each of the DVD disc.

There are more than 100 of discs.

I’m not keen to uses Windows Explorer to browse each media and copy down the info. This manual works is not productive.

The good part is all data are saved in same directory structure in the DVD disc.

For example:

\20060101\DATA\
\20060102\DATA\
\20060103\DATA\

So, I wrote this simple batch file.

Read more »

Popularity: 17% [?]

Map Network Drive

Sometimes, when need to copy files over the network, I will integrates this small portion into the batch job to map drive automatically.

@echo off
IF EXIST Z:\ServerA\SharedFolder\ (
echo “Z Drive Mapped”
) ELSE (
net use Z: \\192.168.1.1\SharedFolder /user:username password
)

Popularity: 14% [?]