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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the Environ Command In ASP

Status
Not open for further replies.

Johno2090

Programmer
May 3, 2002
31
GB
The company i am currently working for have an intranet which the user must loggin themselves.

I am trying to update it so that it will read the users name from a text file(on a shared network drive) and compare it against a database.

this much i have done and works fine. However each user has a userdrive (U:\) where i am placing the .txt file. the problem is when i try to run the environ("username") command it dosent work. so it loads the .txt file form the servers u:\. screwy huh!

environ("username") - should return the username of the u: they are using. and combined with my servers address should allow me to access the file.

any ideas on how to make the environ command work? If you need any more info let me know.
 
I think environ is a VB command and isn't available in VBS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top