Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


stuck with layout

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,53165
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> stuck with layout
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 stuck with layout - 10/31/2007 8:38:38 AM   
  phil999

 

Posts: 38
Score: 0
Joined: 5/4/2007
Status: offline
So i am back seeking more help....  Please

I have an HTA which is a few 100 lines long my problem is i have discovered it will only work if you have xp sp2 so i want to check this when it opens

The below code does this but my problem is how to change it so the if it find sp2 it continues down the rest of the script.  (as an fyi the script contains many sub routines)


      

I just put the message boxes in there to prove it worked.

i want all of my exsiting code to be beneth the next....

thanks in advance

phil
 
 
Post #: 1
 
 RE: stuck with layout - 11/1/2007 4:45:22 AM   
  dm_4ever


Posts: 2663
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
If objOS.ServicePackMajorVersion <> 2 Then
   WScript.Quit
End If

It should quit if the service pack is not equal to 2, otherwise continue with the rest of your script.  If you have many more subs/functions, consider turning this into its own function and take action on what it returns.

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to phil999)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> stuck with layout Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts