in reply to Re: Windows Logon ID capture
in thread Windows Logon ID capture

Thanks Martin
I attempted to assign the value of Win32::Login() to a scalar ($script_runner) but I get the following error

Can't locate auto/Win32/Login.al in @INC

I have checked and it is indeed right

I am using ActiveState Perl 5.8 build 811


UPDATE: have used ppm to check for module but have had not luck finding the Win32 one....

Replies are listed 'Best First'.
Re^3: Windows Logon ID capture
by marto (Cardinal) on Jun 14, 2005 at 16:07 UTC
    Hi,

    Have you had a look here.
    Hope this helps.

    Cheers,

    Martin
Re^3: Windows Logon ID capture
by NateTut (Deacon) on Jun 14, 2005 at 16:17 UTC
    You will also need to put "use Win32;" in your script before you call the function. I don't think you'll need to PPM it, I believe its one of the core modules.
      Yeah.. already got that at the top.
      Thats whats confusing me !!
Re^3: Windows Logon ID capture
by bmann (Priest) on Jun 14, 2005 at 19:16 UTC
    The function is Win32::LoginName

    my $script_runner = Win32::LoginName; # ^^^^
      Yes thanks bmann, what a silly mistake...

      Thanks to all that replied....