Solved

trouble sending file to ftp site

Posted on 2007-03-29
5
244 Views
Last Modified: 2010-03-05
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\"PRogram1"

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\"PRogram1"

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.




0
Comment
Question by:smcfarla
  • 3
  • 2
5 Comments
 
LVL 29

Expert Comment

by:Alan Huseyin Kayahan
ID: 18817624
           That ftp address looks incorrect. Have you ever made successfull connection or copy to that specified address?
0
 
LVL 29

Expert Comment

by:Alan Huseyin Kayahan
ID: 18817914
       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\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
0
 

Author Comment

by:smcfarla
ID: 18819507
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...
0
 
LVL 29

Accepted Solution

by:
Alan Huseyin Kayahan earned 500 total points
ID: 18819629
       Don't use Microsoft. It is just an example. Change them with your own settings.
0
 

Author Comment

by:smcfarla
ID: 18821054
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
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a little timesaver I have been using for setting up Microsoft Small Business Server (SBS) in the simplest possible way. It may not be appropriate for every customer. However, when you get a situation where the person who owns the server is i…
INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now