commenti Posted June 29, 2004 Share Posted June 29, 2004 Hello, I´ve the following problem. I want to run a batchfile hidden, but don´t want the annoying CMD window pop up. The problem is, I wan´t to run the .bat as another user. If I run it as current user, it works. Here is the code, that does not work as I would have expected. RunAsSet("Administrator", @Computername, "password") Runwait ( $tmpfile & " >log.log",@TempDir , @SW_HIDE ) RunAsSet() Without the "RunAsSet", the @SW_HIDE Flags works as expected and there is no command windows visible. commenti Link to comment Share on other sites More sharing options...
Developers Jos Posted June 29, 2004 Developers Share Posted June 29, 2004 It is a known issue: check here for a "workaround" posted a while ago ..#13924 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
commenti Posted June 29, 2004 Author Share Posted June 29, 2004 Hello JdeB, thanx for the answer. I am sorry that I asked something that was allready answered in the forum a while ago. I did a forum search before I posted this but did not find the post you linked to. Seems, I tried not the right search keyword. Hm, the workaround could be work for what I want but, now that I know that this is a known issue I´ll try to find out if ther is a way beside restarting the script in admin mode to solve this. Again thank you very much. commenti Link to comment Share on other sites More sharing options...
Developers Jos Posted June 29, 2004 Developers Share Posted June 29, 2004 I am not sure if it is considered to be a Bug or a Feature, but this was a way i got arround it. Ps. It was not my intention to make it sound that you should have found it. Understand its a diffucult issue to search for this one. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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