PC Review


Reply
Thread Tools Rate Thread

after service pack 2 ftp.exe cannot use password from text file

 
 
siggy2@supereva.it
Guest
Posts: n/a
 
      12th Jan 2006
Under win xp pro sp1 I had many batches that
performed tasks like transfer, rename, delete files
It's in the intranet so I did not mind leaving password in clear in
the batch.
For example to periodically transfer a fixed file I used this

C:\> type transfer-it.bat
echo off

set TEMPNAME=.\remove_me.txt

echo user myuser >> %TEMPNAME%
echo mypassword >> %TEMPNAME%
echo cd mydir >> %TEMPNAME%
echo binary >> %TEMPNAME%
echo put myfile.ext >> %TEMPNAME%
echo bye >> %TEMPNAME%

ftp.exe -n -s:%TEMPNAME% ftp.mysite.com

del %TEMPNAME%

C:\>

after installing xp service pack 2 ftp.exe refuse to pass the password

present in the script and returning this output

C:\> transfer-it.bat
Connected to ftp.mysite.com
220 FTP Server ready.
ftp> user myuser
331 Password required for myuser .

530 Login incorrect.
Login failed.
ftp> cd mydir
530 Please login with USER and PASS
ftp> put myfile.ext
530 Please login with USER and PASS
530 Please login with USER and PASS
ftp> bye
221 Goodbye.
C:\>

I replicated the behaviour on two different workstations and I can
confirm it's caused by sp2...
Please, don't tell me that it's not a bug but it's a feature...
(btw: Windows xp firewall is disabled)

any hint? Am I supposed to abandon ftp.exe for scripting use?
I know that CURL.exe (http://curl.haxx.se/) can also upload file... but
I would avoid modifying all my batches.
TIA!
bye,
PiErre

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
service pack 2 is the greatest service pack ever made by Microsoft =?Utf-8?B?U2VydmljZSBQYWNrIDIgQ29tcGxldGVseSBGYWls Windows XP Setup 2 13th Jan 2005 11:53 AM
Service Pack 4 and Password Authentication =?Utf-8?B?UmVkbWVuNjk=?= Microsoft Windows 2000 1 24th Nov 2004 05:35 PM
password box appear after installed service pack 2 pinecastle Windows XP Accessibility 1 13th Sep 2004 12:48 AM
Unable to download critical update/service pack Windows xp service pack 1 Luke Windows XP General 1 26th Jan 2004 02:41 AM
Internet Explorer 6.0 Service Pack 1 and Cumlative Patch for Service pack Jan Bates Windows XP Internet Explorer 0 20th Oct 2003 09:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:25 AM.