With a little side of applesauce...

Tuesday, January 30, 2007

Win32 DOS Mirror application

I just found one of the coolest applications that I have seen for the Windows command line:

Mirror 1.42

a freeware application by Dominik Jain. Here is a sample usage of the application to move the contents of a network mounted \\remotehost\Inetpub\wwwroot mounted on (z:) to e:\test:
C:\Documents and Settings\speeves\My Documents>Mirror.exe z:\ e:\test

Mirror v1.42 (C) 2001-2006 by Dominik Jain

adding e:\test\aspnet_client\system_web\1_1_4322\SmartNav.htm
adding e:\test\aspnet_client\system_web\1_1_4322\SmartNav.js
adding e:\test\aspnet_client\system_web\1_1_4322\WebUIValidation.js
adding e:\test\index.htm
adding e:\test\na.htm
adding e:\test\new_page_1.htm
adding e:\test\pagerror.gif
adding e:\test\postinfo.html
adding e:\test\_vti_cnf\index.htm
adding e:\test\_vti_cnf\na.htm
adding e:\test\_vti_cnf\new_page_1.htm
adding e:\test\_vti_cnf\pagerror.gif
adding e:\test\_vti_inf.html
adding e:\test\_vti_pvt\access.cnf
adding e:\test\_vti_pvt\botinfs.cnf
adding e:\test\_vti_pvt\bots.cnf
adding e:\test\_vti_pvt\deptodoc.btr
adding e:\test\_vti_pvt\doctodep.btr
adding e:\test\_vti_pvt\frontpg.lck
adding e:\test\_vti_pvt\linkinfo.btr
adding e:\test\_vti_pvt\service.cnf
adding e:\test\_vti_pvt\service.lck
adding e:\test\_vti_pvt\services.cnf
adding e:\test\_vti_pvt\structure.cnf
adding e:\test\_vti_pvt\svcacl.cnf
adding e:\test\_vti_pvt\uniqperm.cnf
adding e:\test\_vti_pvt\writeto.cnf

27 files added, 0 updated
0 files/directories deleted
I then created a test.htm file on \\remotehost and ran Mirror again:

C:\Documents and Settings\speeves\My Documents>Mirror.exe z:\ e:\test

Mirror v1.42 (C) 2001-2006 by Dominik Jain

adding e:\test\test.htm

1 files added, 0 updated
0 files/directories deleted

I then deleted test.htm from \\remotehost

C:\Documents and Settings\speeves\My Documents>Mirror.exe z:\ e:\test

Mirror v1.42 (C) 2001-2006 by Dominik Jain

deleting e:\test\test.htm

0 files added, 0 updated
1 files/directories deleted

This _cool_ application really mirrors the location!! Bye-bye XCOPY!! :)

No comments: