Assign Drive-letter to FTP from Command line

  • Thread starter Thread starter Ole Weigelt
  • Start date Start date
O

Ole Weigelt

Hello Everybody,

in our WTS-Environment, we connect all drives through a script. Now we need
to connect an FTP-Site, too. This Site should get a drive-letter. It is an
internal FTP-Server, so no username and password will be needed.

Can anybody tell me the NET USE notation for this purpose?

NET USE T: ftp://192.168.1.1/DIRECTORY

does not work unfortunately.

Thanks for any hint

Ole
 
thanks for your answer and the great explanation!!!

We'll find a better way than those 'work-arounds' now that I know what is
the difference between shares and FTP.

cu

Ole


Alun Jones said:
"Ole Weigelt" said:
Can anybody tell me the NET USE notation for this purpose?

NET USE T: ftp://192.168.1.1/DIRECTORY

does not work unfortunately.

NET USE creates a drive mapping, which allows for random access to portions
of files, file region locking, and other functions that just are not part of
the FTP protocol. NET USE will not work to an FTP site. You can't map a
drive letter to an FTP site.

There are (or were - I haven't checked in a while) some programs that
pretend to do so, but what they actually do is download the whole file when
you make your first request, and then handle all file locking and random
access locally, before eventually uploading the modified file when you close
it. As you can see, this is a mess waiting to happen - you'll think you've
got the file locked, but someone else will be able to open it, too. When
you each close your files, one of you will lose the adjustments you made to
the file, even though your apps thought that they were carefully locking.

Alun.
~~~~

[Please don't email posters, if a Usenet response is appropriate.]
--
Texas Imperial Software | Find us at http://www.wftpd.com or email
1602 Harvest Moon Place | (e-mail address removed).
Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers.
Fax/Voice +1(512)258-9858 | Try our NEW client software, WFTPD Explorer.
 
Back
Top