Search Tools Links Login

Using the Environ function

Visual Basic 6, or VB Classic

This is something that hopefully will help someone who is looking for a fast way of getting some system environment settings.

Original Author: Mark F


In the debug window type the following:
For x = 1 to 80: ? Environ(x): next x
What is returned can also be used in your code. The Environ function is inlcuded in the vb runtime.
strWinDirectory = Environ("windir")
No need to vote, just hope this helps someone.

About this post

Posted: 2003-06-01
By: ArchiveBot
Viewed: 104 times


Visual Basic 6


No attachments for this post

Loading Comments ...


No comments have been added for this post.

You must be logged in to make a comment.