Category Archives: DOS Batch

DOS Batch

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 … Continue reading

Posted in DOS Batch | Tagged | Leave a comment

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 … Continue reading

Posted in DOS Batch | Tagged | Leave a comment