Results 1 to 5 of 5

Thread: File not found, ahhhhh

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    Having to do a bit of guess work here, but i assume "MakePath$" is a function that creates a file in the applications path called applicationName.INI

    If the file is not found, then i agree with you that the file is not being created. So the error is probably in MakePath$

    Maybe some more info.
    Iain, thats with an i by the way!

  2. #2
    Hyperactive Member
    Join Date
    May 2000
    Posts
    344

    Lean

    Well even if the makepath has a error, shouldn't i be able to tell the proggie that its in \flag\sys\flag.ini? If that doesn't help ya help me...heres the more info...the makepath function.

    Function makepath$ (ByVal drv$, ByVal subdir$)

    Do While Right$(drv$, 1) = "\"
    drv$ = Left$(drv$, Len(drv$) - 1)
    Loop

    Do While Left$(subdir$, 1) = "\"
    subdir$ = Mid$(subdir, 2)
    Loop

    makepath$ = drv$ + "\" + subdir$

    End Function
    -RaY
    VB .Net 2010 (Ultimate)

  3. #3
    Hyperactive Member
    Join Date
    May 2000
    Posts
    344

    lol

    Hey lain, this is the second time you helped me and the first time i called ya like "Thanks loin" and now i called ya something else...sorry about that!
    -RaY
    VB .Net 2010 (Ultimate)

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658

    Mmmmm.

    Don't worry about the name. People keep calling me Lain all the time on this forum.

    Just had a look at the code and it seems to work fine.

    So i am a bit lost now. Maybe it has something to do with VB3.

    Try creating the file before writing to it. Open it and close it

    Code:
    Open inifile$ For Output As #1
        
    Close #1
    Place that at the end of MakePath$ and see if it helps.
    Iain, thats with an i by the way!

  5. #5
    Hyperactive Member
    Join Date
    May 2000
    Posts
    344

    Thumbs down Didnt work

    Hopefully I have more luck going through registry instead of ini..
    -RaY
    VB .Net 2010 (Ultimate)

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