Mappings disconnect on FTP server, can't run script when disconnec

Discussion in 'Windows Server' started by Bob, Sep 18, 2009.

  1. Bob

    Bob Guest

    I run Windows 2003 on an FTP server, the server is in a workgroup - has an
    internal private static IP and a public static IP as clients from work in
    their specific folders via FTP.

    we are experimenting with scripting from software we use --- ipswitch wsftp
    pro where at specific times of the day we connect to a client site via the
    ftp pro software, check to see if they have files for us - yes - we take them
    and drop them to a server in our domain. we have created mappings on the ftp
    server and the script points to the specific mapping - g:\servera\abc folder

    But -- we notice on the FTP server when we go to My Computer the mapping(s)
    will show disconnected network drive with a red x, we click on the drive and
    it asks for our domain credentials, we put in our domain name\admin
    username\password then the mapping opens.

    When this script tries to run the mapping is disconnected it can not drop
    the files on the mapped drive, it defaults to the C drive.

    can you tell me why mappings on my FTP server in a workgroup will disconnect
    - and how to correct so they do not disconnect, we must click on it and we
    are prompted with domain administrator credentials ? by the mappings
    disconnected we can't run the scripts at the needed times.


    Thanks,
    Bob
     
    Bob, Sep 18, 2009
    #1
    1. Advertisements

  2. Try using a UNC Path instead of a Mapped Drive.
    They don't require a constant connection
    They don't time out
    They don't have re-connect issues.

    You will probably always have authentication issues due to the "workgroup"

    It is not a good idea to have the file locations be on a different box then
    where the FTP Service resides,...unless you do it through something like
    DFS. It would be better to just run an FTP Service on each box that
    contains files that need accessed,...then the Client (or the script)
    connects to the correct one to do what it needs. MS FTP Service comes free
    with the server OS,..so there is no additional cost in doing so.

    A lot depends on the structure you have there,...which I don't know all the
    dsetails of.
     
    Phillip Windell, Sep 18, 2009
    #2
    1. Advertisements

  3. Bob

    DaveMills Guest

    You could use
    NET USE X: \\server\share /user:name password /persistent:no
    rest of script
    NET USE X: /Del

    This will map the drive with the credentials as part of the script and remove it
    at the end.
     
    DaveMills, Sep 19, 2009
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.