Results 1 to 12 of 12

Thread: Windows path

  1. #1
    jdff
    Guest

    Windows path

    Hi, somebody know how to use a windows path instead a regular path?

    Open "c:\windows\faq.txt" For Input As #1 - regular path

    I mean the string above can not be used on windows 2000, beacuse windows 2000 is WNNT, there is something to pickup the regular windows folder? Like %windowsfolder%

    Thanks a lot
    Daniel Fonseca

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Developers code book say's :

    Code:
    'Make a new project. Add a module. To the form add a command button. 
    
    'Code:
    'Add this code to the module:
    
    Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
    
    'Add this code to the command button:
    
    Private Sub Command1_Click()
    Dim Junk, WinDir$
    WinDir = Space(144)
    Junk = GetWindowsDirectory(WinDir, 144)
    WinDir = Trim(WinDir)
    MsgBox "The Windows Directory Path is: " & WinDir
    End Sub
    peet

  3. #3
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    peet...you've got the DCB?! Where can I get it. I've been looking for ages but where it says to download it has since gone offline (www.vbsquare.com/dev).

  4. #4
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    mmm yes I noticed... (that the site is gone...)

    and yes I have it .. both the source version and compiled version..

    you want the compiled version offcourse

    I can send it to you ... don't think thats illigal... I think it was kind of open source code.

    peet

  5. #5
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    thanks man! E-mail is by the power of greyskull!

    nice one
    Last edited by chrisjk; Jan 27th, 2002 at 04:36 PM.

  6. #6
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    chrisjk

    sent it but it was returned with an error msg

    peet

  7. #7
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    yeah, I just found out my mail server is down at the moment, sorry!

    Could you try moooo! instead, thanks!
    Last edited by chrisjk; Jan 27th, 2002 at 04:35 PM.

  8. #8
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    should be in you inbox by now

    peet

  9. #9
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    thanks peet!

  10. #10
    Fanatic Member
    Join Date
    Oct 2001
    Location
    didn't decide yet
    Posts
    566
    may i have a copy of that book please too
    [email protected]

    thnks

  11. #11
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    http://www.planetsourcecode.com search for Developers code book

    -= a peet post =-

  12. #12
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    who dredged this up

    gotta cover those email addys!

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