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 instead of VBS. You might try giving the literal path to the .txt file.
mb
 
i should be able to use the command in asp when i tell im using VBscript.

The exact path to the file would not work because that would allow any user to loggon as any other user the reason im trying to do this is because each persons Userdrive is Unique to that person so it would logg them in under that name. Another reason i cant give the exact location of the .txt file is because we cant tell what user is on the computer which is why i wanted to auto login in the first place.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top