Does anyone know a convenient way to get the login name of the user in
Windows (NT4.0)? I know this is probably an RTFM question, but a quick
pass through the pickaxe book, RubyCentral, and Google didn’t turn up
anything. Mind you, i’m a unix guy and know little about getting anything
useful from Windows…
-dave
Does anyone know a convenient way to get the login name of the user in
Windows (NT4.0)? I know this is probably an RTFM question, but a quick
See: http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/37643
regards,
-joe
Does anyone know a convenient way to get the login name of the user
in
Windows (NT4.0)? I know this is probably an RTFM question, but a
quick
See: http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/37643
You can also check ENV:
S:\ruby-cvs\build>irb
irb(main):001:0> ENV[‘UserName’]
“ChrisM”
S:\ruby-cvs\build>ruby -v
ruby 1.6.6 (2001-12-26) [i586-mswin32]
Chris
http://clabs.org