1. Operating System

Hello again,

Another silly question.

How can I tell which operating system is running my program?

I this case either WindowsXP or Windows7.

Thanks,

Don Cole

new topic     » topic index » view message » categorize

2. Re: Operating System

dcole said...

Hello again,

Another silly question.

How can I tell which operating system is running my program?

I this case either WindowsXP or Windows7.

Thanks,

Don Cole

1) by checking in the registry reg query HKLM\SoftwareMicrosoft\windows nt\currentVersion /v CurrentVersion

C:\>reg query "HKLM\Software\Microsoft\Windows nt\CurrentVersion" /v CurrentVersion 
 
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows nt\CurrentVersion 
    CurrentVersion    REG_SZ    6.1 

2) by using win32 API GetVersionEX()

Jacques

new topic     » goto parent     » topic index » view message » categorize

3. Re: Operating System

If you are using Euphoria 4 you can use the uname() function. This returns the most important values returned by the GetVersionEx() API function.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Operating System

LarryMiller said...

If you are using Euphoria 4 you can use the uname() function. This returns the most important values returned by the GetVersionEx() API function.

Thanks Larry,

That function works well and good.

Don Cole

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu