Meditech NPR Reports / NPR Report Writing / NPR Report Writer / Meditech NPR / Non-Procedural Report / Meditech Consulting / Meditech Reports Windows Scripting: January 2007

Wednesday, January 31, 2007

Benefits of Beautiful Code



... beautiful code will ultimately run more reliably. Reliability is a by-product of elegant code, which is cheaper to produce, cheaper to own, and cheaper to grow.

Author: Paul Kimmel http://www.codeguru.com/vb/gen/vb_misc/gamesandfun/article.php/c13111

Thursday, January 25, 2007

Windows Script to Log File Copy Times

:CopyFile
echo.fxcopy /c/y tmp.dll tmp.tmp
echo "File Copied Over " >> c:\copylog.txt
echo.TIMEFIND /I "current" >> c:\copylog.txt
echo. fxcopy /c/y tmp.tmp tmp.dll
echo "File Copied Back " >> c:\copylog.txt
echo.TIMEFIND /I "current" >> c:\copylog.txt
@GoTo :CopyFile

"File Copied Over "
The current time is: 14:23:01.39
"File Copied Back "
The current time is: 14:23:01.73
"File Copied Over "
The current time is: 14:23:02.15
"File Copied Back "
The current time is: 14:23:02.54
"File Copied Over "
The current time is: 14:23:02.93

You can use this quickly get an idea of latency issues between two machines. Just change the file path to file:////serverfrom/share/file to file:////serverto/share/file.

Meditech NPR Reports / NPR Report Writing / NPR Report Writer / Meditech NPR / Non-Procedural Report / Meditech Consulting / Meditech Reports