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????
Its the timing of its release, mixed with the timing of the review mixed with the timing of the event, when this site never reviewed previous iterations of this game that I could find.
Instagram just got "a long-requested feature" by Hamid Ganji
Instagram has finally added a new feature that has been "long-requested" and it allows users to write an individual caption for each image or video in a carousel. The feature will start rolling out this week, and it’ll be available to all users.
Previously, Instagram only allowed a single caption for all regular posts and carousels. This made it harder for content creators to describe every scene in a carousel and often forced them to write longer captions. However, with this new feature, every slide in a carousel can have its own caption, which can be viewed by swiping left or right.
To use the feature, when writing a caption for your post, select “Multiple captions” from the dropdown menu in the caption area. You can then write unique captions for each slide. By swiping through the carousel and selecting individual slides, a dedicated space for writing captions will appear.
Instagram says the feature will help audiences get the right context at the right moment. The ability to assign a unique caption to each slide in a carousel could be particularly useful for content creators and brands on the platform. Instagram says the feature will begin rolling out this week.
The new feature appears to have been well received by Instagram users, many of whom have been requesting it for a long time. However, users are now asking for additional features, such as the ability to add new slides to a carousel after it has been published.
Instagram has been introducing several useful features lately, but users who want access to additional tools and perks can subscribe to the platform’s Instagram Plus offering. Priced at $3.99 per month, Instagram Plus includes exclusive features such as 48-hour Stories, more detailed post analytics, and the ability to tailor posts or Stories to specific audiences. The subscription includes 11 new features in total.
Recent Achievements
Huge Trailer earned a badge Week One Done
Classifyskilleducation earned a badge Week One Done
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