Hi. I have this problem when using Sendkeys. I am using the following code to run a program with adminstrative rights. It works on about half of the machines. On the machines where it doesn't work the Runas dialog box becomes stuck on their Windows 2000 screen. It is awaiting a password entry. Would it be possible that the Sendkeys password was implemented to quickly into the Runas dialog box? See below for the code that I am using: (Please not thet this code segment is contained within an IF statement).

SETTITLE ("SENDKEYS")

run 'runas /user:domainname\username

"\\servername\Ant-virusV\AVcheck.bat"'

$SK SetFocus ("SENDKEYS")

$SK= sendkeys("password{enter}")