VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get System Directory1 Line of Code No API

by Kevin Smithwick (4 Submissions)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

Get the system directory with 1 line of code and no API.

Assumes
I've tested this on Windows 9x/2000/NT/XP, but I cannot say it will work on ME.

Rate Get System Directory1 Line of Code No API

msgbox Environ$("windir") & IIf(Len(Environ$("OS")), "\SYSTEM32", "\SYSTEM")

Download this snippet    Add to My Saved Code

Get System Directory1 Line of Code No API Comments

No comments have been posted about Get System Directory1 Line of Code No API. Why not be the first to post a comment about Get System Directory1 Line of Code No API.

Post your comment

Subject:
Message:
0/1000 characters