Jump to content


Photo

Accessing a DOS variable


  • Please log in to reply
3 replies to this topic

#1 jayR

jayR
  • Members
  • PipPip
  • Member
  • 26 posts

Posted 05 June 2006 - 12:05 PM

There is a variable I can access from the dos promt that is called %nwusername% and it returns the novell username of the person currently logged into the system. Is there a way I can access that variable so that I can record the username of who is accessing my company's intranet page? I've looked around but found nothing. Thanks in advance.

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 05 June 2006 - 12:40 PM

This is something solvable with your own network software. Don't your server logs identify the network IP address for every access?
Legend has it that reading the manual never killed anyone.
My site

#3 jayR

jayR
  • Members
  • PipPip
  • Member
  • 26 posts

Posted 05 June 2006 - 01:05 PM

The thing is that multiple people can share computers, so they have the same IP address. If I could log their Novell username it would let us see who specifically accessed the page, not just which machine.

#4 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 05 June 2006 - 02:01 PM

You should be able to get this infomation through COM. However this really is more a windows thing, php just provides the COM interface. You would probably find more help on a MS developers site.

Beware though, COM is an absolute mess.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users