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

Where does Environ Function get info from

Status
Not open for further replies.

Kadanis

Programmer
Joined
Mar 21, 2002
Messages
108
Location
GB
Hi All

I want to use the environ function in an app to help me recode loads of macros, databases etc due to a drive letter change.

It looks as though it should work ok but I need to know exaclty where the function gets its info from so I can be sure.

A basic example would be something like

strDriveLetter = Environ("GRPDRV")

I need to be sure that after the migration this returns the new drive letter.

Any ideas?

Thanks everyone
 
it uses the operating system's environment settings. if you go to dos and type set, it the current environment setting for the OS, you can use these with environ("")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top