I have to ftp files to a location, but the user wants me to be sure I have exclusive rights to the folder. A dummy file exists called Test.txt. If I can open that file for input then I have exclusive rights to the folder. I tried to open it as follows
Dim FilePath5, strbuffer As String
FilePath5 = "fimport = 6
Open FilePath5 For Input As #fimport
but got the following error - Error number = 52 bad file name or number.
I was given a username and password and they are stored in the batch file when I am ftp the file but first I need to know if I have exclusive rights to the folder.
Has anybody got a solution?
Dim FilePath5, strbuffer As String
FilePath5 = "fimport = 6
Open FilePath5 For Input As #fimport
but got the following error - Error number = 52 bad file name or number.
I was given a username and password and they are stored in the batch file when I am ftp the file but first I need to know if I have exclusive rights to the folder.
Has anybody got a solution?