Get The Windows Directory 2

Category:
System/API
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
The following code snippet is a quick and simple way to get the Windows directory. Just add a command button for the demo.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: