Hi agin

Thanks Chris S. i know about the lack security
now i'm just trying to get this to work!

Now i tried this :
$USER = "administrator"
$PASSWORD = "due2keho"

run 'runas /env /user:nt\$USER "cmd"'
SetFocus("c:\windows\system32\cmd.exe")
sendkeys("$PASSWORD{ENTER}")

i've still get the error:

Enter the password for nt\administrator:
Attempting to start cmd as user "nt\administrator" ...
0Press any key to continue . . . RUNAS ERROR: Unable to run - cmd
267: The directory name is invalid.

any other suggestions ??