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,