webForumDet fria alternativet

Mappen en ftp som nätverksenhet?

Webbutveckling

9 svar · 499 visningar · startad av Sjodahl

Medlem sedan maj 20033 218 inlägg
Frågan#1

Hej undrar om det går mappa en ftp som en nätdisk (typ Y:)

kör windows XP

Medlem sedan apr. 200010 782 inlägg
#2
H:\>net help use
The syntax of this command is:

NET USE [devicename | *] [\\computername\sharename[\volume] [password | *]]
        [/USER:[domainname\]username]
        [/USER:[dotted domain name\]username]
        [/USER:[username@dotted domain name]
        [[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]

NET USE connects a computer to a shared resource or disconnects a
computer from a shared resource. When used without options, it lists
the computer's connections.

devicename       Assigns a name to connect to the resource or specifies
                 the device to be disconnected. There are two kinds of
                 devicenames: disk drives (D: through Z:) and printers
                 (LPT1: through LPT3:). Type an asterisk instead of a
                 specific devicename to assign the next available
                 devicename.
\\computername   Is the name of the computer controlling the shared
                 resource. If the computername contains blank characters,
                 enclose the double backslash (\\) and the computername
                 in quotation marks (" "). The computername may be from
                 1 to 15 characters long.
\sharename       Is the network name of the shared resource.
\volume          Specifies a NetWare volume on the server. You must have
                 Client Services for Netware (Windows Workstations)
                 or Gateway Service for Netware (Windows Server)
                 installed and running to connect to NetWare servers.
password         Is the password needed to access the shared resource.
*                Produces a prompt for the password. The password is
                 not displayed when you type it at the password prompt.
/USER            Specifies a different username with which the connection
                 is made.
domainname       Specifies another domain. If domain is omitted,
                 the current logged on domain is used.
username         Specifies the username with which to logon.
/HOME            Connects a user to their home directory.
/DELETE          Cancels a network connection and removes the connection
                 from the list of persistent connections.
/PERSISTENT      Controls the use of persistent network connections.
                 The default is the setting used last.
YES              Saves connections as they are made, and restores
                 them at next logon.
NO               Does not save the connection being made or subsequent
                 connections; existing connections will be restored at
                 next logon. Use the /DELETE switch to remove
                 persistent connections.
NET HELP command | MORE displays Help one screen at a time.

H:\>
Medlem sedan maj 20033 218 inlägg
#3

Japp det är jag med på.
Men det är så att jag måste ange ett IP istället (typ ftp://ftpadress)? för \\computername ligger inte på det lokalanätverket.

Medlem sedan maj 20012 080 inlägg
#4

Hej hej. Stoffe är inne på rätt spår men du bör fixa till namnuppslagningen först. Se nedan. I och med att Net Use använder sig av netbios namn får du "luras" i din lmhosts fil.

A. Its possible to configure a machine to map to a FTP server as a drive (for instance the Microsoft site) providing the machine runs both NetBEUI and TCP/IP. Perform the following:

Perform a NSLOOKUP for the FTP site, e.g.
nslookup ftp.microsoft.com
make a note of the IP address
Edit the LMHOSTS file (in %systemroot%\system32\drivers\etc)
Add line
<ip address> MicrosoftFTP #PRE
e.g. 207.46.133.140 MicrosoftFTP #PRE
Save the file
Open a CMD.EXE session. Enter command:
nbtstat -R
This purges and reloads the name table cache
Type command:
net view \\MicrosoftFTP
You should see information on the site
Now map a drive (to share data)
net use * \\MicrosoftFTP\data /user:anonymous
All done. It will pass a drive letter for the connection

Medlem sedan maj 20033 218 inlägg
#5

Ett bra tips... tackar!
men går det bra att använda ftp där ? Hm får testa återkommer...

Medlem sedan maj 20033 218 inlägg
#6

C:\>net use * \\hostname /user:nisse

"System error 53 has occurred.

The network path was not found."

men kan skriva "ping hostname"

Medlem sedan jan. 2003573 inlägg
#7

Som sammanfattande svar - nej, det funkar inte.

/M

Medlem sedan maj 20033 218 inlägg
#8

"A. Its possible to configure a machine to map to a FTP server as a drive (for instance the Microsoft site) providing the machine runs both NetBEUI and TCP/IP. Perform the following:"

Medlem sedan maj 20012 080 inlägg
#9

Hej sjödal,

Jag klippte ut det från ett forum och postade det utan att tänka. Möjligen fungerade det på windows 95 tiden men jag har svårt att tänka mig att det skulle fungera nu.

Bara för att man råkar ange ett IP nummer (till en FTP server) till Net use.exe så kommer den inte automatiskt att använda FTP protokollet.

Ytterligare en sökning på google ger träffar typ:
http://www.bmtmicro.com/BMTCatalog/win/webdrive.html

Det verkar som att det är något liknade denna du vill ha. Notera att den verkar vara tillverkad för just windows 95.

Vad är du ute efter igentligen?

Med "add network place" i "My network places" kan du skapa en länk till en ftp server. Men jag tror inte att du kan mappa den till en nätverks enhet. Det blir dock fortfarande enkelt att accessa ftp servern.
Antar att länkar skapade med den wizzarden använder webläsaren som ftp klient i slutändan.

Medlem sedan maj 20033 218 inlägg
#10

Japp men kan bara inte förstå varför det inte går (eller förstår det) men tycker det hade varit en smidig funktion.

Typ kunna mappa upp andra ftper på sin egen ftp ;)

257 ms totalt · 4 externa anrop · v20260731065814-full.6fe65c25
122 ms — deklarationer (db)
0 ms — hämta statistik (cache)
130 ms — hämta tråd, inlägg och bilagor (db)
124 ms — ändringar (db)