Well i made these codes and when i run it the vb6 said me Path/File Access Error , can anyone help me:
BasePath = App.Path & "\" & "\users\"
MkDir BasePath
Open BasePath & name & "\list.txt" For Input As #1
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You make
c:\xxx\users\then openc:\xxx\users\name\list.txtbut you have not created thenamesub directory, it wont happen automatically.You would need to create
\users, then\name. (You should probably also account for the error that will occur if youmkdiran existing directory)Something like