flextexmex
New Member
- Joined
- Mar 12, 2015
- Messages
- 1
Hi,
I'm using the "Dir" function to determine if a specified folder exists on my pc locally and if not I create a new one with that name:
If Len(Dir(Path, vbDirectory)) = 0 Then
MkDir Path
End If
For example Path = "C:\list\doesthisfolderexist"
It is working fine. But now I wanted to use this function for a FTP folder that is already connected to windows 7.
For example with this FTP Path = "ftp://123.123.123.123:321/list/doesthisfolderexist" it does not work.
Of course I copied the filepaths to my explorer to check if they are correct and it is working fine.
Can someone tell me why the "Dir" function is working with my local filepath but not with the ftp filepath?
Thank you!
I'm using the "Dir" function to determine if a specified folder exists on my pc locally and if not I create a new one with that name:
If Len(Dir(Path, vbDirectory)) = 0 Then
MkDir Path
End If
For example Path = "C:\list\doesthisfolderexist"
It is working fine. But now I wanted to use this function for a FTP folder that is already connected to windows 7.
For example with this FTP Path = "ftp://123.123.123.123:321/list/doesthisfolderexist" it does not work.
Of course I copied the filepaths to my explorer to check if they are correct and it is working fine.
Can someone tell me why the "Dir" function is working with my local filepath but not with the ftp filepath?
Thank you!