zxc3 Posted August 26, 2005 Share Posted August 26, 2005 (edited) I want to close process Word.exe by machine User-02, but when I start from my machine program Runwait ("proclose.exe", " \\ user-02\D $\lc ") process WinWord.exe it is closed on mine to the machine, instead of by machine User-02.How to me to make, that process was closed by machine User-02, instead of by my machine?;Proclose on \\user-02\D$\lcprocessclose("Winword.exe")$PID = ProcessExists("Winword.exe") ; Will return the PID or 0 if the process isn't found.If $PID Then Processclose($PID)ProcessWaitClose($pid)And such User2 User100 Edited August 26, 2005 by zxc3 Link to comment Share on other sites More sharing options...
BigDod Posted August 26, 2005 Share Posted August 26, 2005 See RunAsSet in help file. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
zxc3 Posted August 26, 2005 Author Share Posted August 26, 2005 I ask not about it. At me it is right the admin, and I and so I have access to all machines and to catalogues with my password. But when I start the program by the another's machine, she closes processes by my machine, instead of on that with which the program is started. Link to comment Share on other sites More sharing options...
BigDod Posted August 26, 2005 Share Posted August 26, 2005 I ask not about it. At me it is right the admin, and I and so I have access to all machines and to catalogues with my password. But when I start the program by the another's machine, she closes processes by my machine, instead of on that with which the program is started.<{POST_SNAPBACK}>I am not sure what you are trying to do but perhaps you should investigate PSTools. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
zxc3 Posted August 26, 2005 Author Share Posted August 26, 2005 Whether it is possible to close process started by the concrete file, taking place to us to the machine \\ user-02, instead of simply winword.exe Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted August 26, 2005 Share Posted August 26, 2005 I think I know what the problem might be. You're storing the script you wrote on \\User-02\D$\lc, but you're trying to execute the script from your machine. The problem would then be that when you execute the script, you are pulling a temporary version onto your machine, and executing the copy locally ProcessExists() will occur on your machine, not his. If you want it to run on their machines, you should make a While 1...WEnd loop, and call it as a user logon script. That way, if winword.exe is ever active, it will auto-close the application on their system. Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
zxc3 Posted August 27, 2005 Author Share Posted August 27, 2005 I think I know what the problem might be.You're storing the script you wrote on \\User-02\D$\lc, but you're trying to execute the script from your machine.The problem would then be that when you execute the script, you are pulling a temporary version onto your machine, and executing the copy locally ProcessExists() will occur on your machine, not his.If you want it to run on their machines, you should make a While 1...WEnd loop, and call it as a user logon script. That way, if winword.exe is ever active, it will auto-close the application on their system.<{POST_SNAPBACK}>I have not understood. I.e., if I shall start this program not from the command line by my machine, and with the help of such program from my machine:While 1 Runwait ("proclose.exe","\\User-02\D$\lc")WendIt will work?Good on Monday I shall try.And in what sense if it is possible more in detail.And that I wanted already something:Processclose ("\\User-02\D$\lc\Winword.exe").Thanks for the help. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 27, 2005 Developers Share Posted August 27, 2005 I have not understood. I.e., if I shall start this program not from the command line by my machine, and with the help of such program from my machine:While 1 Runwait ("proclose.exe","\\User-02\D$\lc")WendIt will work?Good on Monday I shall try.And in what sense if it is possible more in detail.And that I wanted already something:Processclose ("\\User-02\D$\lc\Winword.exe").Thanks for the help.<{POST_SNAPBACK}>Looks to me you want to start the script on another PC from your own pc.If thats what you want you need to use a tool like PSEXEC .... 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...
zxc3 Posted August 27, 2005 Author Share Posted August 27, 2005 Looks to me you want to start the script on another PC from your own pc.If thats what you want you need to use a tool like PSEXEC ....<{POST_SNAPBACK}>Did you mean http://www.autoitscript.com/fileman/users/jdeb/scriptlets/admin.au3or another?Thanks Link to comment Share on other sites More sharing options...
Developers Jos Posted August 27, 2005 Developers Share Posted August 27, 2005 Did you mean http://www.autoitscript.com/fileman/users/jdeb/scriptlets/admin.au3or another?Thanks<{POST_SNAPBACK}>PSEXEC comes from sysinternals... 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...
zxc3 Posted August 27, 2005 Author Share Posted August 27, 2005 Whether there is other variant except for PsExec I about Looks to me you want to start the script on another PC from your own pc ? Link to comment Share on other sites More sharing options...
zxc3 Posted August 27, 2005 Author Share Posted August 27, 2005 PSEXEC comes from sysinternals...<{POST_SNAPBACK}>Anti-virus scanners report about.... Link to comment Share on other sites More sharing options...
Developers Jos Posted August 27, 2005 Developers Share Posted August 27, 2005 Have no idea what your mean with the last 2 posts...... 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