/dev/null Posted July 9, 2007 Share Posted July 9, 2007 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 * Link to comment Share on other sites More sharing options...
James Posted July 9, 2007 Share Posted July 9, 2007 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. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
/dev/null Posted July 12, 2007 Author Share Posted July 12, 2007 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 * Link to comment Share on other sites More sharing options...
evilertoaster Posted July 12, 2007 Share Posted July 12, 2007 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now