some useful windows batch file command

@ECHO OFF:: Check Windows version -- Windows 2000 or later

IF NOT "%OS%"=="Windows_NT" GOTO Syntax
VER FIND.EXE "Windows NT" >NUL
IF NOT ERRORLEVEL 1 GOTO Syntax

:: Save a list of ALL shares found on the source server
NET.EXE SHARE > "%~dp0%ComputerName%_originalshares.txt" 2>&1