Code: Select all
MsgBox "This function is now being performed in GroupMail. All information has been prepared for GroupMail. The Membership database will now close and GroupMail will open automatically."
Shell "C:\Program Files\GroupMail 5\GMMain.exe", vbMaximizedFocus
Quit
I would like to put an If statement in the code to execute the above Shell command if running under Win XP and a modified Shell command (reflecting the correct folder) if running under Win 7.
How do I construct the If statement?
Thank you, in advance.