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

B

Bob

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
 
P

Phillip Windell

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

The views expressed, are my own and not those of my employer, or Microsoft,
or anyone else associated with me, including my cats.
-----------------------------------------------------


"Bob" wrote in message
news:BDDA8C73-F3CD-4E10-8129-64BA0CEE5A0C@microsoft.com...
>
> 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:serveraabc
> 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 nameadmin
> usernamepassword 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
>
 
D

DaveMills

On Fri, 18 Sep 2009 09:34:02 -0700, Bob wrote:

>
>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:serveraabc 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 nameadmin
>usernamepassword 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


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.
--
Dave Mills
There are 10 types of people, those that understand binary and those that don't.
 
Back
Top Bottom