Welcome to Ethical Hackers
Nick:  
Pass:     
Register Help Member List View New Posts View Today's Posts

Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call Open With [vb6]
05-07-2010, 02:25 AM
Post: #1
Star Call Open With [vb6]
In module:
Code:
'Site:http://www.CyberHackers.org
      Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
      Sub OpenWith(ByVal xFileName As String)
      ShellExecute 0, vbNullString, "RUNDLL32.EXE", "shell32.dll,OpenAs_RunDLL " & xFileName, "", vbNormalFocus
      End Sub

Where you want to call it:
Code:
Call OpenWith("c:\downloads\tut.pdf")
Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)



Ethical Hackers © 2012.