smcfarla
asked on
trouble sending file to ftp site
I'm having trouble with this ftp code, the files are not there. Please help...
My login is anonymous and password must contain a valid email address
Send to: ftp://ftvmu1/VVG/jax/FTL
My file location is on a share directory: K:\\ftlgg01\dept\ftl\"PRog ram1"
In the same location, I have a .scr (lextract.scr) file that contains the following:
ftvmu1
anonymous
bob.cat@cars.com
cd VVG/jax/FTL
put K:\\ftlgg01\dept\ftl\"PRog ram1"
In the same location, I have a .bat (fromshell.bat) file that contains the following:
ftp -s:c:\lextract.scr
I schedule a task to run the .bat file or just manually execute the file.
My login is anonymous and password must contain a valid email address
Send to: ftp://ftvmu1/VVG/jax/FTL
My file location is on a share directory: K:\\ftlgg01\dept\ftl\"PRog
In the same location, I have a .scr (lextract.scr) file that contains the following:
ftvmu1
anonymous
bob.cat@cars.com
cd VVG/jax/FTL
put K:\\ftlgg01\dept\ftl\"PRog
In the same location, I have a .bat (fromshell.bat) file that contains the following:
ftp -s:c:\lextract.scr
I schedule a task to run the .bat file or just manually execute the file.
That ftp address looks incorrect. Have you ever made successfull connection or copy to that specified address?
If you map this ftp address as a drive to your computer, your script will work better/with minimum fault.
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:
Example below is for microsoft.com. You would change the values with yours and map the drive for your ftp.
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\driv ers\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
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:
Example below is for microsoft.com. You would change the values with yours and map the drive for your ftp.
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\driv
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
ASKER
i added this line in the lmhosts, i just put it where the other <ip> #PRE commands were.
I saved the file
I type net view \\MicrosoftFTP and got an error msg:
System error 53 has occurred
The network path was not found.
When i did the ip lookup i also got the server name...
I saved the file
I type net view \\MicrosoftFTP and got an error msg:
System error 53 has occurred
The network path was not found.
When i did the ip lookup i also got the server name...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Now that i have the ip address, is there an easier way? I'm getting the same error message when i try to net view \\ftsmur1
This is the section where i put the ip address (see where i typed <HERE>>>>>>>):
# The following example illustrates all of these extensions:
#
# 102.54.94.97 rhino #PRE #DOM:networking #net group's DC
# 102.54.94.102 "appname \0x14" #special app server
# 102.54.94.123 popular #PRE #source server
# 102.54.94.117 localsrv #PRE #needed for the include
# 135.108.73.7 ftsmur1 #PRE <HERE>>>>>>>>>>
#
# #BEGIN_ALTERNATE
# #INCLUDE \\localsrv\public\lmhosts
# #INCLUDE \\rhino\public\lmhosts
# #INCLUDE \\ftsmur1\public\lmhosts <HERE>>>>>>>>>>
# #END_ALTERNATE
This is the section where i put the ip address (see where i typed <HERE>>>>>>>):
# The following example illustrates all of these extensions:
#
# 102.54.94.97 rhino #PRE #DOM:networking #net group's DC
# 102.54.94.102 "appname \0x14" #special app server
# 102.54.94.123 popular #PRE #source server
# 102.54.94.117 localsrv #PRE #needed for the include
# 135.108.73.7 ftsmur1 #PRE <HERE>>>>>>>>>>
#
# #BEGIN_ALTERNATE
# #INCLUDE \\localsrv\public\lmhosts
# #INCLUDE \\rhino\public\lmhosts
# #INCLUDE \\ftsmur1\public\lmhosts <HERE>>>>>>>>>>
# #END_ALTERNATE