[Samba] test

Giulio Orsero giulioo at pobox.com
Tue Jan 28 22:28:24 GMT 2003


On Tue, 28 Jan 2003 14:20:57 -0800 (PST), Jonathan Johnson <jon at sutinen.com>
wrote:

>The command "ver" returns the version, but that's not really helpful,
>because in a batch file script, you can't use the output to control the
>direction of the script.

ver | find "95" > nul
if not errorlevel 1 set SISTEMA=WIN9X

ver | find "98" > nul
if not errorlevel 1 set SISTEMA=WIN9X

ver | find "Millennium" > nul
if not errorlevel 1 set SISTEMA=WIN9X

ver | find "NT" > nul
if not errorlevel 1 set SISTEMA=WINNT

ver | find "2000" > nul
if not errorlevel 1 set SISTEMA=WIN2K_XP

ver | find "XP" > nul
if not errorlevel 1 set SISTEMA=WIN2K_XP


-- 
giulioo at pobox.com


More information about the samba mailing list