Changing IP under normal user account.
Option explicit
dim oShell
set oShell= Wscript.CreateObject("WScript.Shell")
oShell.Run "runas /user:administrator ""cmd.exe"""
WScript.Sleep 100
oShell.Sendkeys "MyPassWord" & "{ENTER}"
WScript.Sleep 300
oShell.Sendkeys "netsh -f c:\home.txt" & "{ENTER}"
Wscript.Quit
This is the script that I want convert into C++. The main reason that I wanna convert is security. But I'm having problem that I don't the way to run dos without the window pop-up.
Thank you.
Option explicit
dim oShell
set oShell= Wscript.CreateObject("WScript.Shell")
oShell.Run "runas /user:administrator ""cmd.exe"""
WScript.Sleep 100
oShell.Sendkeys "MyPassWord" & "{ENTER}"
WScript.Sleep 300
oShell.Sendkeys "netsh -f c:\home.txt" & "{ENTER}"
Wscript.Quit
This is the script that I want convert into C++. The main reason that I wanna convert is security. But I'm having problem that I don't the way to run dos without the window pop-up.
Thank you.