Search Tools Links Login

Get System Directory -- 1 Line of Code No API


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

Original Author: Immortal Tako

Assumptions

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

Code

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

About this post

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

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.