Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Regarding Win32::API for CreateProcessAsUser

by Yathin123 (Initiate)
on Sep 19, 2016 at 05:49 UTC ( [id://1172101]=perlquestion: print w/replies, xml ) Need Help??

Yathin123 has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, Can some one please help and give an example on how can we start a process on other windows hots in network as other user that we pass through our script.
  • Comment on Regarding Win32::API for CreateProcessAsUser

Replies are listed 'Best First'.
Re: Regarding Win32::API for CreateProcessAsUser
by Anonymous Monk on Sep 19, 2016 at 05:58 UTC
      Thank for the suggestion I got to know about this but when I use this exe in perl tk module under a button a dos window poops up and stays on the screen until the complete set of process Is not completed so that's the reason I was looking for some better programmatic option.

        Hello Yathin123, and welcome to the Monastery!

        Maybe you need to use wperl? From perlwin32#Miscellaneous-Things:

        One common mistake when using this port with a GUI library like Tk is assuming that Perl's normal behavior of opening a command-line window will go away. This isn't the case. If you want to start a copy of perl without opening a command-line window, use the wperl executable built during the installation process. Usage is exactly the same as normal perl on Windows, except that options like -h don't work (since they need a command-line window to print to).

        Hope that helps,

        Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1172101]
Approved by Athanasius
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-04-19 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found