VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Accessing the System Environment

by Syed Natiq Abbas Kazmi (3 Submissions)
Category: Files/File Controls/Input/Output
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sun 27th July 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Accessing the System Environment

Rate Accessing the System Environment



'environment 'variables using the ENVIRON$ function in Visual Basic.

strSystemDir = Environ$("windir")
    
'    •-- Other environment variables can be accessed in the same fashion. 
'    •-- For example, the line below would retrieve the current system Path 
'        string:
    
    strPath = Environ$("path")



Download this snippet    Add to My Saved Code

Accessing the System Environment Comments

No comments have been posted about Accessing the System Environment. Why not be the first to post a comment about Accessing the System Environment.

Post your comment

Subject:
Message:
0/1000 characters