Results 1 to 10 of 10

Unable to use the "Dir" function for a FTP folder

Threaded View

  1. #1
    Registered User
    Join Date
    03-12-2015
    Location
    germany
    MS-Off Ver
    2007
    Posts
    8

    Unable to use the "Dir" function for a FTP folder

    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 also posted this question here: http://www.mrexcel.com/forum/excel-q...ml#post4099808
    Last edited by flextexmex; 03-12-2015 at 06:32 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Script to save to folder in "v:\dept2", confirm file saved, then delete from "v:\dept1"
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2014, 11:42 AM
  2. Unable to run code in between "Unprotect" and "Protect" object.
    By eric1234 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-28-2013, 12:44 PM
  3. Unable to implement "IF" Function / Formula in Excel (workbook attached)
    By Swapna Thakur in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-01-2012, 02:02 AM
  4. "Unable to get the RTD property of the worksheet function class"
    By billiboy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-05-2009, 11:07 AM
  5. Backup to specific folder if workbook names begins with "NSR" or "MAC"
    By GregR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2005, 08:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1