- Home
·
- Miscellaneous
·
- Retrieve the name of your Temporary directory with one line of code.
Retrieve the name of your Temporary directory with one line of code.
Retrieve the name of your Temporary directory with one line of code.
Rate Retrieve the name of your Temporary directory with one line of code.
(1(1 Vote))
Retrieving the Name of the Temporary Directory
The ENVIRON statement in Visual Basic allows you to retrieve a string that is associated with a variable stored in the MS-DOS environment. The ENVIRON statement has the following syntax:
Environ [$](environmentstring)
'If you ask the ENVIRON statement to return a string associated with a variable that does not exist, an empty string will be returned.
'====COMMENT END==============
D = Environ$("TEMP")
MsgBox D
Retrieve the name of your Temporary directory with one line of code. Comments
No comments yet — be the first to post one!
Post a Comment