Disable execution on certain OS

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Boxxxed
Junior Coder
Posts: 26
Joined: Fri Mar 19, 2010 7:20 pm

Disable execution on certain OS

Post by Boxxxed » Sat Mar 27, 2010 9:09 pm

How do I make the macro exit if Windows 95, Windows 98/Me or NT (pre SP6) is running?

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Mar 29, 2010 6:45 am

Something like this:

Code: Select all

Position>95/98.4.0,OS_VER,1,Is9598
Position>NT.4,OS_VER,1,IsNT

If>{(%Is9598%>0) or (%IsNT%>0)}
  Exit>0
Endif
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Boxxxed
Junior Coder
Posts: 26
Joined: Fri Mar 19, 2010 7:20 pm

Post by Boxxxed » Tue Mar 30, 2010 6:33 am

How does this work?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts