in reply to Re: Regarding Win32::API for CreateProcessAsUser
in thread Regarding Win32::API for CreateProcessAsUser

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.
  • Comment on Re^2: Regarding Win32::API for CreateProcessAsUser

Replies are listed 'Best First'.
Re^3: Regarding Win32::API for CreateProcessAsUser
by Athanasius (Archbishop) on Sep 19, 2016 at 07:18 UTC

    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,

Re^3: Regarding Win32::API for CreateProcessAsUser
by Anonymous Monk on Sep 19, 2016 at 07:43 UTC
      Thanks, my console is already hidden when I double click on the script it appears without any dos window in the backend, it only pops up when I hit the trigger button which has the psexe in the function.can you please help with CreateProcessAsUser I would wish to learn how to quarry dll functions and under stand it's usage.

        Thanks, my console is already hidden w

        Its to hide psexec popup

        can you please help with CreateProcessAsUser I would wish to learn how to quarry dll functions and under stand it's usage.

        If you really wish to learn, study the docs