Login  Register

Re: static boolean isWindows7() method in ij.IJ.java?

Posted by dscho on Jan 17, 2011; 10:41pm
URL: http://imagej.273.s1.nabble.com/static-boolean-isWindows7-method-in-ij-IJ-java-tp3685957p3685958.html

Hi,

On Mon, 17 Jan 2011, Bill Mohler wrote:

> I would love to have my macro detect if a user is running 7 rather than
> something earlier

What does

        print(call("java.lang.System.getProperty", "os.version"));

show? If it starts with "7.", you could use the startsWith() function to
test for Windows 7 (according to a quick web search, Windows Vista
returns something starting with "6.").

Ciao,
Johannes