Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
Find the system directory of your system. ...
Author:
sachin angre
E-mail:
Click to e-mail author
Submitted:
3/24/2002
Version:
VB5
Compatibility:
VB5, VB6
Category:
File Manipulation
Views:
8515
Find the system directory of your system.
Declarations:
Public Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Code:
Public Function mysystemdirectory() Dim m_mybuf As String * 25 Dim m_val As Long, systemdirectory As String m_val = GetSystemDirectory(m_mybuf, 25) systemdirectory = Left(m_mybuf, InStr(m_mybuf, Chr(0)) - 1) MsgBox systemdirectory End Function private sub form_load() mysystemdirectory end sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement