Results 1 to 3 of 3

Thread: what is the path of??

  1. #1

    Thread Starter
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606

    Post

    I would like to how to get the path of the system32,cuz it's not aleays the same.

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    It will always be under windows.
    Code:
    'find the windows directory path
    'usefull in shell commands if you know something
    'is in the windows directory
    'example..instead of shell c:\windows\notepad.ext
    'you could use shell windir$ & /notepad.exe
    'if windows was stored in E:/Windows then you wouldn't get an error
    'if you used shell c:/windosw\notepad.exe, it couldn't be found '(error)
    '
    Option Explicit
    
    Private Declare Function GetWindowsDirectory _
    Lib "kernel32" Alias "GetWindowsDirectoryA" _
    (ByVal lpBuffer As String, ByVal nSize As Long) As Long
    '
    Private Sub Form_Load()
    '
        Dim strFindWinDir$, WinDir$
    '
            WinDir$ = Space(144)
            strFindWinDir$ = GetWindowsDirectory(WinDir$, 144)
            WinDir$ = Trim(WinDir$)
    '
            MsgBox "The Windows Directory Path is: " & WinDir$
    '
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3

    Thread Starter
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606

    Thumbs up again

    Thanks again HeSaidJoe,

    don't know what i do without you!!!!!!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width