Code 2>Notepad
---
Local $sUserName = "Username"
Local $sPassword = "Password"
; Run a command prompt as the other user.
RunAs($sUserName, @ComputerName, $sPassword, 0, "notepad.exe", @SystemDir)
Code 3 > Using Path from ProgramFiles
Local $sUserName = "Username"
Local $sPassword = "Password"
; Run a command prompt as the other user.
RunAs($sUserName, @ComputerName, $sPassword, 0, @ProgramFilesDir & '\WinSCP\WinSCP.exe')
|