I am programing a software to edit some windows seven features with java...
Well the most important thing is that the program should not run on any operating system other then windows 7
So what is the code to see if the os is windows 7?
I am using this code
if(!System.getProperty("os.name").toLowerCase().equals("windows vista")||!System.getProperty("os.version").equals("6.1")){
JOptionPane.showMessageDialog(null, "Win7Plus only works on windows 7", "Win7Plus",JOptionPane.PLAIN_MESSAGE);
System.exit(0);
}
Although it is working it still feels wrong!!!
i mean ---> System.getProperty("os.name").toLowerCase().equals("windows vista")
Am i doing this the write way or should i use another code????
Dead by Daylight, Two Point Museum, and more join Xbox Free Play Days for the weekend by Pulasthi Ariyasinghe
There is a brand-new Free Play Days offer available to Xbox players, giving them a chance to try out a new selection of games over the weekend. Microsoft's latest promotion brings some high-profile titles, including the sports title PGA TOUR 2K25 and the racing sim Assetto Corsa.
Almost all the games being offered this time require an Xbox Game Pass subscription, with only one title being available for all players.
Starting with the fully free-to-play section, Dead by Daylight is populating it solo. This asymmetric survival horror title should be the most familiar to most gamers, considering its age. The multiplayer four-versus-one asymmetric survival horror game has you assuming the roles of survivors or the killer to see who can come out on top.
This Dead by Daylight offer will be available to play until Monday, June 22, giving you an extra day of play compared to the remainder of the Free Play Days titles.
Meanwhile, Xbox Game Pass Ultimate, Premium, and Essential members can now try out the well-received tycoon game Two Point Museum, the circuit racing sim Assetto Corsa, as well as 2K's golf sim experience that gives players a career to develop alongside real-world pros and courses.
Here are the announced games and the platforms they are available to play on:
PGA TOUR 2K25 (Xbox Series X|S)
Two Point Museum (Xbox Series X|S)
Assetto Corsa (Xbox Series X|S, Xbox One)
Dead by Daylight (Xbox Series X|S, Xbox One)
To easily find the titles on Xbox consoles, first head to the Store, and then in the sidebar, find the Home section. In there, open the Subscriptions tab. All the games from the Free Play Days collection will show up in this section for quick access.
Apart from Dead by Daylight's offer, this week's Free Play Days promotions will end on Sunday, June 21, at 11:59 pm PT.
Question
Teddy*
I am programing a software to edit some windows seven features with java...
Well the most important thing is that the program should not run on any operating system other then windows 7
So what is the code to see if the os is windows 7?
I am using this code
if(!System.getProperty("os.name").toLowerCase().equals("windows vista")||!System.getProperty("os.version").equals("6.1")){ JOptionPane.showMessageDialog(null, "Win7Plus only works on windows 7", "Win7Plus",JOptionPane.PLAIN_MESSAGE); System.exit(0); }Although it is working it still feels wrong!!!
i mean ---> System.getProperty("os.name").toLowerCase().equals("windows vista")
Am i doing this the write way or should i use another code????
Link to comment
https://www.neowin.net/forum/topic/846114-windows-7-is-windows-vista-v61/Share on other sites
12 answers to this question
Recommended Posts