Help!!!!! Opening file

Author Message
supercomputermonkey

  • Total Posts : 4
  • Scores: 0
  • Reward points : 0
  • Joined: 6/21/2011
  • Status: offline
Help!!!!! Opening file Tuesday, June 21, 2011 8:22 AM (permalink)
0
 
Hi All!
I have a script that will pull up a message box that I made in text editor. It looks like this
 
Dim box, yes, no
 
box = MsgBox("Text here that tells the user a message"),# here of text box options,("Title")
 
If box =# of text box options Then
1st button = MsgBox("Text here that tells the user a message"),# here of text box options,("Your Title")
 
 
End if
 
If box =# of text box options Then
1st button = MsgBox("Text here that tells the user a message"),# here of text box options,("Your Title")
 
End If
 
That's just the outline not the real thing. Anyways, I would like to know if there is a way where I could put a code in the yes outline that would open a shortcut. For example, I have an internet shortcut on my desktop and I would like to have a message box pop up when I click the VBS file that says "Would you like to open the internet" Yes or No. Please help!
 
 
#1
    ..::Ryan::..

    • Total Posts : 108
    • Scores: 0
    • Reward points : 0
    • Joined: 3/23/2009
    • Status: offline
    Re:Help!!!!! Opening file Tuesday, June 21, 2011 3:28 PM (permalink)
    0
    Not sure exactly what you are asking for but is this what you are talking about?
     
    intDec = MsgBox("Some wonderful text", 4, "Rocking Title")
    
    If intDec = vbYes Then
     Dim oShell
     Set oShell = WScript.CreateObject ("WScript.Shell")
     oShell.run ("http://www.visualbasicscript.com")
    Else
     MsgBox "Fine"
    End If
    

     
    #2
      supercomputermonkey

      • Total Posts : 4
      • Scores: 0
      • Reward points : 0
      • Joined: 6/21/2011
      • Status: offline
      Re:Help!!!!! Opening file Wednesday, June 22, 2011 4:52 AM (permalink)
      0
      Perfect Yes! Sorry first post didn't know how to word it
       
      #3
        supercomputermonkey

        • Total Posts : 4
        • Scores: 0
        • Reward points : 0
        • Joined: 6/21/2011
        • Status: offline
        Re:Help!!!!! Opening file Wednesday, June 22, 2011 5:05 AM (permalink)
        0
        How would I be able to open up a file like a word document.
        <message edited by supercomputermonkey on Wednesday, June 22, 2011 5:17 AM>
         
        #4
          ..::Ryan::..

          • Total Posts : 108
          • Scores: 0
          • Reward points : 0
          • Joined: 3/23/2009
          • Status: offline
          Re:Help!!!!! Opening file Wednesday, June 22, 2011 8:43 AM (permalink)
          0
          Just replace
           http://www.visualbasicscript.com 

           
          With whatever the path to that file may be.
           
          Ex.
          C:\scripts\test.txt
           
          #5

            Online Bookmarks Sharing: Share/Bookmark

            Jump to:

            Current active users

            There are 0 members and 1 guests.

            Icon Legend and Permission

            • 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
            • Read Message
            • Post New Thread
            • Reply to message
            • Post New Poll
            • Submit Vote
            • Post reward post
            • Delete my own posts
            • Delete my own threads
            • Rate post

            2000-2012 ASPPlayground.NET Forum Version 3.9