Marook-Online
* 06.Feb.2012, 14:43 UTC+1
Welcome, Guest. Please login or register.
Username:
Password:

News: Back again Wink
Main Menu
  Navigation
   Downloads
     Tools
     Music Discs
     SMF Mods
     Trainer & Patches
     EgoShare Uploader
   Guestbook
   NoPaste
   User Map
   Gallery
  
   Malware Scan
   Hacker Blacklist
   Find Abusemail
Top Downloads
Support Me !
Help me by donating a small amount!



Advanced search

Google


Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read
25-Aug-2007 02:04
Marook
Administrator
*****
Offline Offline

Joined: 01-Jan-2005
Posts: 224


A Member of egocrew.de asked me how to shell an URL with VBScript. This is the answer... there are three ways to do it.

Code
GeSHi (vbs):
  1. Const sURL = "http://www.egocrew.de/board/thread.php?goto=firstnew&threadid=15820"
  2.  
  3. Dim Shell
  4. dim oIE
  5.  
  6.  
  7. MsgBox "I will open the same URL with three different ways, choose your ;)",vbInformation
  8.  
  9. '#########################################
  10. 'First of all, just call the explorer.exe
  11. 'and deliver an URL as argument
  12. CreateObject("WScript.Shell").Run "Explorer.EXE " & sURL,0,True
  13.  
  14. '#########################################
  15. 'The next one, should open your registered
  16. 'default browser and navigate to the url.
  17. 'See http://msdn2.microsoft.com/en-us/library/ms630455.aspx for more info
  18. Set Shell=CreateObject("Shell.Application")
  19.  
  20. Shell.ShellExecute sURL,Args,Dir,Operation,Show
  21.  
  22. '#########################################
  23. 'This way creates a new instance of the IExplorer
  24. 'You can use its DOM to fill out password fields
  25. 'an log into your webmail for example.
  26. Set oIE = CreateObject("InternetExplorer.Application")
  27.  
  28. Do While oIE.Busy
  29. Loop
  30.  
  31. 'Show the new IE window
  32. oIE.Visible = 1
  33.  
  34. 'Navigate to the url
  35. oIE.Navigate sURL
  36.  
  37. 'Lets wait until the complete page is loaded
  38. Do While oIE.ReadyState <> 4 'READYSTATE_COMPLETE
  39. Loop
  40.  
  41. 'If you wan to close the just opened IE, use
  42. oIE.Quit
  43. '(c) by Marook 08/2007
Created by GeSHI 1.0.7.20
« Last Edit: 27-Aug-2007 23:58 by Marook » Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net

MHD v2.1 © 2oo8 by Marook
32116 hacking attempts defended!