Solved

trouble sending file to ftp site

Posted on 2007-03-29
5
250 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Introduction: I have always been a big fan of Windows but my liking towards it is slowly being eroded by the variety of other Applications that I encounter, when I browse the Web. Most of the software available is free and maybe Open Source too. …
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…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
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…

752 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