Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

trouble sending file to ftp site

Posted on 2007-03-29
5
Medium Priority
?
254 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 1500 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Hallo! I guess almost every Windows Administrator must have got stumped with this question "Where does WINDOWS store a users cached credentials? Every user who had once logged onto a Server/Desktop while it was connected to the domain could sti…
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. …
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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…

670 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