Re: FTP

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Guido" <Guido@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EAD3649F-9137-4DBB-A6DA-6726057382BD@xxxxxxxxxxxxxxxx
I am using the built in ftp command in Windows XP to connect to a Unix
Server
ih the same network subnet.

When I start ftp and the ip address of the server it asks me for a user
name
and password which I type in and it works fine.

I am trying to write a series of commands into a batch file and I would
like
to include the user name and password within the batch file so that the
user
is not prompted for them.

Is there a way to do this.

Your help would be appreciated.

Regards,

Guido


You could use this batch file:
@echo off
set site=ftp.xxx.com
set account=guido
set password=SomePassword
set script="%temp%\script.scr"

echo> %script% %account%
echo>>%script% %password%
echo>>%script% binary
echo>>%script% get SomeFile.doc
echo>>%script% quit
ftp -s:%Script% %site%
del %script%


.



Relevant Pages

  • Re: new script
    ... The caret character ^ is required when generating test.vbs ... I'm really thankfull for your help (and script). ... #echo>> c:\test.vbs ... remove them before running the batch file. ...
    (microsoft.public.windows.server.scripting)
  • Re: Windows NT Command Script problem
    ... and run a script to copy what needs to be ... >>@echo off ... >>rem END of command file ... >>operable program or batch file. ...
    (microsoft.public.windows.server.scripting)
  • Re: Creating a script to search and replace files in XP
    ... You probably need a batch file. ... How does the script know if the file is unconverted? ... Remove the word "echo" ... echo del "%old% ...
    (microsoft.public.windows.file_system)
  • Interactive Login Works, Script Login Fails
    ... i am writing a script for a client, ... download all files from an ftp site, which they can set up in task scheduler ... > ftp.scr ECHO OPEN ftp.server.com ... with error "530 User myuser cannot log in." ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: Help needed with Script
    ... The specification would be in the ini which will be ... There is a fairly comprehensive console command and batch file ... @echo off ... When testing your script or batch file, ...
    (microsoft.public.windows.server.general)