-
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.
-
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
-
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!
-
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.
-
Didnt work
Hopefully I have more luck going through registry instead of ini..