Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get info from the DOS-command: SET in an application

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Im making a application to log info when a user on our intranet is cliking on a link.
All the info I want to log is shown when you run the DOS-command: SET, but how can a put that in my application?
 
Sounds like you're talking about the environment variables' values.

The easiest way to do what you want is to make a custom browser they have to use. This isn't as extreme as it sounds, since most of IE is readily available in an easy-to-use ActiveX control. But it IS unlikely that people won't use IE or Netscrape or even Outlook or something directly.

I can't imagine any way to make this browser-neutral, and at best you're going to end up with ActiveX security popups all over. Environment variables are accessible via script, but not using objects normally acceptable on a web page (for security reasons).

You said "intranet." Can't you use what's captured in your web server logs to achieve your goals here?
 
The info that is logged in the web-server isnt't enough.
Im missing one important thing, username of the person on the client.
 
Normally people do this using Integrated Windows Authentication at the web server. Then the user's ID is available from an ASP server environment variable (see LOGON_USER at the second reference below).

If these people are part of your web server's domain or workgroup they'll never see a prompt. If they aren't, they'll have to log on at least the first time they hit your web site.

Check out:



If you aren't using ASP, there MIGHT be something available via FrontPage extensions, but I doubt it. I just don't think the browser will let you see the client machine's envoronment variables. Otherwise you'd see piratical outfits like double-click doing that and selling it along with the rest of your profile they've been scooping up.
 
Yes LOGON_USER would have worked if our network had been microsoft, but except for the web-server we have Novell servers and the LOGON_USER only handles windows-accounts, not NDS.

And the Integrated Windows Authentication only works with IE and we use Netscape.. so Im sad to say that this didn't help me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top