Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Win32 Current User -- Help!

Expand Messages
  • Jason Waugh
    ... For anyone else that may be interested, I ve found the answer: use Win32; $user = Win32::LoginName(); Thanks, Jason Waugh.
    Message 1 of 3 , Feb 27, 2001
    • 0 Attachment
      On 2/27/2001 at 2:57 PM Jason Waugh wrote:

      >I'm working on a Perl script to be run on Win98/Win2000 boxes. It needs
      >to send the username of the currently logged in user to another process.
      >The problem is, I don't know how to get this username into a variable, and
      >I've looked almost everywhere I can think of.


      For anyone else that may be interested, I've found the answer:


      use Win32;

      $user = Win32::LoginName();





      Thanks,
      Jason Waugh.
    Your message has been successfully submitted and would be delivered to recipients shortly.