Jump to content
Sign in to follow this  
commenti

Is it possible to run a batchfile hidden?

Recommended Posts

commenti

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

Share this post


Link to post
Share on other sites
commenti

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

Share this post


Link to post
Share on other sites
Jos

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.


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×