Results 1 to 3 of 3

Thread: ChDir does not work on WinNT ?!?!?!?

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 1999
    Posts
    58

    Question

    I tried running a perfecty working project on my PC w/ Windows98 today on a machine w/WindowsNT.

    Well, I got lots of "file not found" errors due to the fact that all the ChDir(MyDirectory) lines I put in the program act just as if they were not there!

    How could this be?
    Max

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Question Odd!

    I just tried this...
    Code:
    ChDir "C:\Winnt"
    MsgBox CurDir("C")
    And output said C:\Winnt

    Not sure why it wont work for you!?

    Post a lump of the code......so we can peek
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Maybe try:

    Code:
    Private Declare Function SetCurrentDirectory Lib "kernel32" Alias "SetCurrentDirectoryA" (ByVal lpPathName As String) As Long
    
    Sub Form_Load()
    SetCurrentDirectory "c:\MyDir"
    End Sub
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

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