Posted: Sun Jul 29, 2007 9:47 pm Post subject: Making a Script ???
Quote:
Anyways you have to add Vista to this list as WinVista and configure the following script so it recognizes the new value you added so it looks like this:
Code:
function GetSystemType: Integer; //from Stuart Johnson with a little change by me
const
{ operating system constants }
var
osVerInfo : TOSVersionInfo;
majorVer, minorVer : Integer;
begin
{ set operating system type flag }
osVerInfo.dwOSVersionInfoSize := SizeOf(TOSVersionInfo);
if GetVersionEx(osVerInfo) then
begin
majorVer := osVerInfo.dwMajorVersion;
minorVer := osVerInfo.dwMinorVersion;
case osVerInfo.dwPlatformId of
VER_PLATFORM_WIN32_NT : { Windows NT/2000 }
begin
if majorVer <= 4 then
result := cOsWinNT
else
if (majorVer = 5) AND (minorVer= 0) then
result := cOsWin2000
else
if (majorVer = 5) AND (minorVer = 1) then
result := cOsWinXP
else if (majorver = 5) then result:=cOsNewer
else
if (majorVer = 6) AND (minorVer = 0) then
result := cOsWinVista
else
result := cOsUnknown;
end; {case }
VER_PLATFORM_WIN32_WINDOWS : { Windows 9x/ME }
begin
if (majorVer = 4) AND (minorVer = 0) then
result := cOsWin95
else
if (majorVer = 4) AND (minorVer = 10) then
begin
if osVerInfo.szCSDVersion[1] = 'A' then
result := cOsWin98SE
else
result := cOsWin98;
end {if Version = 'A'}
else
if (majorVer = 4) AND (minorVer = 90) then
result := cOsWinME
else
result := cOsUnknown;
end; {case VER_PLATFORM_WIN32_WINDOWS}
else
result := cOsUnknown;
end;
end
else
result := cOsUnknown;
end;
HOW DO I DO THIS i have windows vista can someone explain how to mae a script????
You should really try searching on Google.
It takes only a few minutes to find what you're looking for.
Usually less time than it takes for someone else to post what you're looking for.
Anyway, I googled it and found a few relevant results.
But posting it would defeat the purpose.
If you still haven't found what you're looking for in a few days, I'll post the ones I found.
In the mean time...
Good luck!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum