Sign in to follow this  
Followers 0
/dev/null

error after calling RunAsSet()

4 posts in this topic

Hi,

in very rare cases I do get ERROR_ENVVAR_NOT_FOUND after calling RunAsSet(). Tha'ts ther error GetLastError() returns (ERROR_ENVVAR_NOT_FOUND = The system could not find the environment option that was entered.) I call RunAsSet() with the default option to load the user profile (for no special reason). Any idea what could cause that error message? I tried to debug it, but it's not easy, as it happens just once in a while and most of the time I do not have access to the system where it happens (User Laptop).

I use AutoIT 3.2.2.0 on WindowsXP and Windows 2000. Oh, and please no "Update to 3.2.4.9" comments. That's not possible at the moment.

Thanks!

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites



Hmm, I remember reading on a help problem that you can not RunAsSet a ShellExecute or Run command. If I am wrong please correct me.

You cannot use RunAsSet() with ShellExecute(), but obviously with Run() !??!

Anyway, my problem is with Run() and RunAsSet(). Anybody ???


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

This could happen if the user profile could not be loaded becuase some of the user files files were locked/in-use. Any backround apps that maybe are chaging user data? or perhaps the other user is also logged in on a diverent session?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0