README.md

December 4, 2022 ยท View on GitHub

Easy System Variables

Description

Easy way to return system variables

More Info

none, none ,none

your coding becomes a lot quicker!!

Submitted On
ByShane Manaton
LevelBeginner
User Rating4.5 (18 globes from 4 users)
CompatibilityVB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0, VB Script, ASP (Active Server Pages) , VBA MS Access, VBA MS Excel
CategoryWindows System Services
WorldVisual Basic
Archive File

API Declarations

None!!!

Source Code

Private Sub Form_Load()
For i = 1 To 30
MsgBox Environ(i), vbOKOnly, i
Next i
End Sub
I have seen loads of complicated code that does the same
Try this code, every system variable you need in one line of code
Usage:
MsgBox Environ("ComputerName")
MsgBox Environ("Path")
Etc