HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows XP

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 05-10-2008, 05:09 PM
Marco
 
Posts: n/a
Default I can't connect to ftp server with ftp.exe

Hi.

I'm trying without success to send an access file into a ftp server folder.

my script start to upload and stop in command number 150.

The ftp connects to the server, it enter in the specific folder sart to send
the file but stop.

If I use a FTP server I can see that the file is already in the ftp server
folder because the name is there but with zero bytes and it stops.

I have a batch file that calls the commands in a text file.

This is what I have in batch and text file:

Batch: ftp -s:ftp.txt

text file:
open ftp.server.com
usaername
password
Cd folder

MPUT teste.mdb
y

close

quit


this is the log of cmd

ftp> open ftp.server.com
connect to ftp.server.com.
220 Microsoft FTP Service
Utilizador (ftp.server.comnone)):
331 Password required for username.

230 User username logged in.
ftp> CD folder
ftp>
ftp> MPUT teste.mdb
MPUT teste.mdb? y
200 PORT command successful.
150 Opening ASCII mode data connection for teste.mdb.


What is wrong?? PLEASE HELP ME


Regards,
Marco

Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
  #2  
Old 05-10-2008, 05:25 PM
Pegasus \(MVP\)
 
Posts: n/a
Default Re: I can't connect to ftp server with ftp.exe


"Marco" <Marco@discussions.microsoft.com> wrote in message
news:1C12B9BE-42E0-4987-ACEE-D9C8D450A3FE@microsoft.com...
> Hi.
>
> I'm trying without success to send an access file into a ftp server
> folder.
>
> my script start to upload and stop in command number 150.
>
> The ftp connects to the server, it enter in the specific folder sart to
> send
> the file but stop.
>
> If I use a FTP server I can see that the file is already in the ftp server
> folder because the name is there but with zero bytes and it stops.
>
> I have a batch file that calls the commands in a text file.
>
> This is what I have in batch and text file:
>
> Batch: ftp -s:ftp.txt
>
> text file:
> open ftp.server.com
> usaername
> password
> Cd folder
>
> MPUT teste.mdb
> y
>
> close
>
> quit
>
>
> this is the log of cmd
>
> ftp> open ftp.server.com
> connect to ftp.server.com.
> 220 Microsoft FTP Service
> Utilizador (ftp.server.comnone)):
> 331 Password required for username.
>
> 230 User username logged in.
> ftp> CD folder
> ftp>
> ftp> MPUT teste.mdb
> MPUT teste.mdb? y
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for teste.mdb.
>
>
> What is wrong?? PLEASE HELP ME
>
>
> Regards,
> Marco
>


I'm not particularly familiar with sending multiple files
using wildcards but I had no problem sending a single
file using your script file. Perhaps the problem is with
your FTP server, your account name or password.


Reply With Quote
  #3  
Old 05-10-2008, 05:44 PM
Marco
 
Posts: n/a
Default Re: I can't connect to ftp server with ftp.exe

Hi.

I think that it's not the account because I have cuteftp and it works.

I tried to open in explorer the ftp address and also worked.

It seems I can't do nothing, not even a DIR I tried with a different ftp
account and also the same.

I always stop in command 150.


I even try with antoher internet connection.

Any ideas?


Marco




"Pegasus (MVP)" wrote:

>
> "Marco" <Marco@discussions.microsoft.com> wrote in message
> news:1C12B9BE-42E0-4987-ACEE-D9C8D450A3FE@microsoft.com...
> > Hi.
> >
> > I'm trying without success to send an access file into a ftp server
> > folder.
> >
> > my script start to upload and stop in command number 150.
> >
> > The ftp connects to the server, it enter in the specific folder sart to
> > send
> > the file but stop.
> >
> > If I use a FTP server I can see that the file is already in the ftp server
> > folder because the name is there but with zero bytes and it stops.
> >
> > I have a batch file that calls the commands in a text file.
> >
> > This is what I have in batch and text file:
> >
> > Batch: ftp -s:ftp.txt
> >
> > text file:
> > open ftp.server.com
> > usaername
> > password
> > Cd folder
> >
> > MPUT teste.mdb
> > y
> >
> > close
> >
> > quit
> >
> >
> > this is the log of cmd
> >
> > ftp> open ftp.server.com
> > connect to ftp.server.com.
> > 220 Microsoft FTP Service
> > Utilizador (ftp.server.comnone)):
> > 331 Password required for username.
> >
> > 230 User username logged in.
> > ftp> CD folder
> > ftp>
> > ftp> MPUT teste.mdb
> > MPUT teste.mdb? y
> > 200 PORT command successful.
> > 150 Opening ASCII mode data connection for teste.mdb.
> >
> >
> > What is wrong?? PLEASE HELP ME
> >
> >
> > Regards,
> > Marco
> >

>
> I'm not particularly familiar with sending multiple files
> using wildcards but I had no problem sending a single
> file using your script file. Perhaps the problem is with
> your FTP server, your account name or password.
>
>
>

Reply With Quote
  #4  
Old 05-10-2008, 05:53 PM
Marco
 
Posts: n/a
Default Re: I can't connect to ftp server with ftp.exe

Hi. I tried from another pc and it worked. The other pc is also running
windowx sp, but have IE6. can it be because of that?

Marco

"Pegasus (MVP)" wrote:

>
> "Marco" <Marco@discussions.microsoft.com> wrote in message
> news:1C12B9BE-42E0-4987-ACEE-D9C8D450A3FE@microsoft.com...
> > Hi.
> >
> > I'm trying without success to send an access file into a ftp server
> > folder.
> >
> > my script start to upload and stop in command number 150.
> >
> > The ftp connects to the server, it enter in the specific folder sart to
> > send
> > the file but stop.
> >
> > If I use a FTP server I can see that the file is already in the ftp server
> > folder because the name is there but with zero bytes and it stops.
> >
> > I have a batch file that calls the commands in a text file.
> >
> > This is what I have in batch and text file:
> >
> > Batch: ftp -s:ftp.txt
> >
> > text file:
> > open ftp.server.com
> > usaername
> > password
> > Cd folder
> >
> > MPUT teste.mdb
> > y
> >
> > close
> >
> > quit
> >
> >
> > this is the log of cmd
> >
> > ftp> open ftp.server.com
> > connect to ftp.server.com.
> > 220 Microsoft FTP Service
> > Utilizador (ftp.server.comnone)):
> > 331 Password required for username.
> >
> > 230 User username logged in.
> > ftp> CD folder
> > ftp>
> > ftp> MPUT teste.mdb
> > MPUT teste.mdb? y
> > 200 PORT command successful.
> > 150 Opening ASCII mode data connection for teste.mdb.
> >
> >
> > What is wrong?? PLEASE HELP ME
> >
> >
> > Regards,
> > Marco
> >

>
> I'm not particularly familiar with sending multiple files
> using wildcards but I had no problem sending a single
> file using your script file. Perhaps the problem is with
> your FTP server, your account name or password.
>
>
>

Reply With Quote
  #5  
Old 05-11-2008, 04:45 AM
VanguardLH
 
Posts: n/a
Default Re: I can't connect to ftp server with ftp.exe

"Marco" wrote in
<news:1C12B9BE-42E0-4987-ACEE-D9C8D450A3FE@microsoft.com>:

> Hi.
>
> I'm trying without success to send an access file into a ftp server folder.
>
> my script start to upload and stop in command number 150.
>
> The ftp connects to the server, it enter in the specific folder sart to send
> the file but stop.
>
> If I use a FTP server I can see that the file is already in the ftp server
> folder because the name is there but with zero bytes and it stops.
>
> I have a batch file that calls the commands in a text file.
>
> This is what I have in batch and text file:
>
> Batch: ftp -s:ftp.txt
>
> text file:
> open ftp.server.com
> usaername
> password
> Cd folder
>
> MPUT teste.mdb
> y
>
> close
>
> quit
>
> this is the log of cmd
>
> ftp> open ftp.server.com
> connect to ftp.server.com.
> 220 Microsoft FTP Service
> Utilizador (ftp.server.comnone)):
> 331 Password required for username.
>
> 230 User username logged in.
> ftp> CD folder
> ftp>
> ftp> MPUT teste.mdb
> MPUT teste.mdb? y
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for teste.mdb.
>
> What is wrong?? PLEASE HELP ME
>
> Regards,
> Marco


Same problem if you run ftp.exe and enter the commands manually (i.e.,
without using a script)?

Why are you using MPUT instead of PUT? You are only specifying a single
file. MPUT is for specifying multiple files. What happens when you use
PUT?

Also, why are you not using BIN to send in binary mode (to ensure you
get the same bits up in the file on the server as you have on your
host)? You could also add HASH to see pound signs added to each line to
show the progress of the PUT operation. How many #'s you see depends on
how large is the file that you are sending.

Although you can change to a directory, do you have permission for that
username to write into that directory?

Reply With Quote
  #6  
Old 05-11-2008, 04:51 AM
VanguardLH
 
Posts: n/a
Default Re: I can't connect to ftp server with ftp.exe

"Marco" wrote in
<news:0C2E0338-4D6D-4B3C-BAA8-938675196546@microsoft.com>:

> Hi. I tried from another pc and it worked. The other pc is also running
> windowx sp, but have IE6. can it be because of that?


No web browser is involved when using ftp.exe. Sounds more like a
firewall issue. What happens when you disable the firewall? The login
and controls (commands) for FTP are handled over port 21. The data gets
sent over port 20. You'll need to enable both ports, and also enable
TCP and UDP over those ports, in your firewall for the outbound connects
from ftp.exe.

What happens when you run manually:

ftp <servername>
<username>
<password>
ls
quit

Do you get past the 'ls' command?
Reply With Quote
  #7  
Old 05-11-2008, 10:32 AM
Marco
 
Posts: n/a
Default Re: I can't connect to ftp server with ftp.exe

Hello.

If I go to run and type ftp, in the command line box I type open ftp.marco.com
then it ask for the user and I write Marco then asks for the pass and I type
it.

then I type any command, such as Send; Mput; Put; Ls; Dir; .... and says
that the command 200 is sucessfully but it stops in the command 150.

I tried in another PC withthe same internet connection and it worked. ( the
problem is that the other PC is not mine)

The only difference besides the brand is the mine has IE7.

I start to think that the problem is not the ftp server account or internet
connection is someething with mmy pc.

What can I do?

Regards.
Marco




"VanguardLH" wrote:

> "Marco" wrote in
> <news:1C12B9BE-42E0-4987-ACEE-D9C8D450A3FE@microsoft.com>:
>
> > Hi.
> >
> > I'm trying without success to send an access file into a ftp server folder.
> >
> > my script start to upload and stop in command number 150.
> >
> > The ftp connects to the server, it enter in the specific folder sart to send
> > the file but stop.
> >
> > If I use a FTP server I can see that the file is already in the ftp server
> > folder because the name is there but with zero bytes and it stops.
> >
> > I have a batch file that calls the commands in a text file.
> >
> > This is what I have in batch and text file:
> >
> > Batch: ftp -s:ftp.txt
> >
> > text file:
> > open ftp.server.com
> > usaername
> > password
> > Cd folder
> >
> > MPUT teste.mdb
> > y
> >
> > close
> >
> > quit
> >
> > this is the log of cmd
> >
> > ftp> open ftp.server.com
> > connect to ftp.server.com.
> > 220 Microsoft FTP Service
> > Utilizador (ftp.server.comnone)):
> > 331 Password required for username.
> >
> > 230 User username logged in.
> > ftp> CD folder
> > ftp>
> > ftp> MPUT teste.mdb
> > MPUT teste.mdb? y
> > 200 PORT command successful.
> > 150 Opening ASCII mode data connection for teste.mdb.
> >
> > What is wrong?? PLEASE HELP ME
> >
> > Regards,
> > Marco

>
> Same problem if you run ftp.exe and enter the commands manually (i.e.,
> without using a script)?
>
> Why are you using MPUT instead of PUT? You are only specifying a single
> file. MPUT is for specifying multiple files. What happens when you use
> PUT?
>
> Also, why are you not using BIN to send in binary mode (to ensure you
> get the same bits up in the file on the server as you have on your
> host)? You could also add HASH to see pound signs added to each line to
> show the progress of the PUT operation. How many #'s you see depends on
> how large is the file that you are sending.
>
> Although you can change to a directory, do you have permission for that
> username to write into that directory?
>
>

Reply With Quote
  #8  
Old 05-11-2008, 12:41 PM
Big Al
 
Posts: n/a
Default Re: I can't connect to ftp server with ftp.exe

Marco wrote:
> Hi.
>
> I'm trying without success to send an access file into a ftp server folder.
>
> my script start to upload and stop in command number 150.
>
> The ftp connects to the server, it enter in the specific folder sart to send
> the file but stop.
>
> If I use a FTP server I can see that the file is already in the ftp server
> folder because the name is there but with zero bytes and it stops.
>
> I have a batch file that calls the commands in a text file.
>
> This is what I have in batch and text file:
>
> Batch: ftp -s:ftp.txt
>
> text file:
> open ftp.server.com
> usaername
> password
> Cd folder
>
> MPUT teste.mdb
> y
>
> close
>
> quit
>
>
> this is the log of cmd
>
> ftp> open ftp.server.com
> connect to ftp.server.com.
> 220 Microsoft FTP Service
> Utilizador (ftp.server.comnone)):
> 331 Password required for username.
>
> 230 User username logged in.
> ftp> CD folder
> ftp>
> ftp> MPUT teste.mdb
> MPUT teste.mdb? y
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for teste.mdb.
>
>
> What is wrong?? PLEASE HELP ME
>
>
> Regards,
> Marco
>

If you are using 'mput', type a 'prompt' before that and remove the 'Y'
from your script.
The Prompt command stops the system from asking 'do you want to send
this' and you having to say yes to each file when using mput.
And as has been stated, send or put, are betting for a single file.

prompt
mput test*.mdb
quit

This would be all you need.
Reply With Quote
  #9  
Old 05-11-2008, 02:30 PM
Marco
 
Posts: n/a
Default Re: I can't connect to ftp server with ftp.exe

Hi.

I tried prompt before LS and says Intreractive mode off then I tried with
mput and says the same.

If I use promt after the command there's no message because it hangs in 150
command..

Regards,
Marco




"Big Al" wrote:

> Marco wrote:
> > Hi.
> >
> > I'm trying without success to send an access file into a ftp server folder.
> >
> > my script start to upload and stop in command number 150.
> >
> > The ftp connects to the server, it enter in the specific folder sart to send
> > the file but stop.
> >
> > If I use a FTP server I can see that the file is already in the ftp server
> > folder because the name is there but with zero bytes and it stops.
> >
> > I have a batch file that calls the commands in a text file.
> >
> > This is what I have in batch and text file:
> >
> > Batch: ftp -s:ftp.txt
> >
> > text file:
> > open ftp.server.com
> > usaername
> > password
> > Cd folder
> >
> > MPUT teste.mdb
> > y
> >
> > close
> >
> > quit
> >
> >
> > this is the log of cmd
> >
> > ftp> open ftp.server.com
> > connect to ftp.server.com.
> > 220 Microsoft FTP Service
> > Utilizador (ftp.server.comnone)):
> > 331 Password required for username.
> >
> > 230 User username logged in.
> > ftp> CD folder
> > ftp>
> > ftp> MPUT teste.mdb
> > MPUT teste.mdb? y
> > 200 PORT command successful.
> > 150 Opening ASCII mode data connection for teste.mdb.
> >
> >
> > What is wrong?? PLEASE HELP ME
> >
> >
> > Regards,
> > Marco
> >

> If you are using 'mput', type a 'prompt' before that and remove the 'Y'
> from your script.
> The Prompt command stops the system from asking 'do you want to send
> this' and you having to say yes to each file when using mput.
> And as has been stated, send or put, are betting for a single file.
>
> prompt
> mput test*.mdb
> quit
>
> This would be all you need.
>

Reply With Quote
  #10  
Old 05-11-2008, 02:48 PM
VanguardLH
 
Posts: n/a
Default Re: I can't connect to ftp server with ftp.exe

"Marco" wrote in
<news:68CC1C6C-BBB0-4760-95B2-546F704C68F9@microsoft.com>:

> Hello.
>
> If I go to run and type ftp, in the command line box I type open ftp.marco.com
> then it ask for the user and I write Marco then asks for the pass and I type
> it.
>
> then I type any command, such as Send; Mput; Put; Ls; Dir; .... and says
> that the command 200 is sucessfully but it stops in the command 150.
>
> I tried in another PC withthe same internet connection and it worked. ( the
> problem is that the other PC is not mine)
>
> The only difference besides the brand is the mine has IE7.
>
> I start to think that the problem is not the ftp server account or internet
> connection is someething with mmy pc.
>
> What can I do?
>
> Regards.
> Marco
>
> "VanguardLH" wrote:
>
>> "Marco" wrote in
>> <news:1C12B9BE-42E0-4987-ACEE-D9C8D450A3FE@microsoft.com>:
>>
>>> Hi.
>>>
>>> I'm trying without success to send an access file into a ftp server folder.
>>>
>>> my script start to upload and stop in command number 150.
>>>
>>> The ftp connects to the server, it enter in the specific folder sart to send
>>> the file but stop.
>>>
>>> If I use a FTP server I can see that the file is already in the ftp server
>>> folder because the name is there but with zero bytes and it stops.
>>>
>>> I have a batch file that calls the commands in a text file.
>>>
>>> This is what I have in batch and text file:
>>>
>>> Batch: ftp -s:ftp.txt
>>>
>>> text file:
>>> open ftp.server.com
>>> usaername
>>> password
>>> Cd folder
>>>
>>> MPUT teste.mdb
>>> y
>>>
>>> close
>>>
>>> quit
>>>
>>> this is the log of cmd
>>>
>>> ftp> open ftp.server.com
>>> connect to ftp.server.com.
>>> 220 Microsoft FTP Service
>>> Utilizador (ftp.server.comnone)):
>>> 331 Password required for username.
>>>
>>> 230 User username logged in.
>>> ftp> CD folder
>>> ftp>
>>> ftp> MPUT teste.mdb
>>> MPUT teste.mdb? y
>>> 200 PORT command successful.
>>> 150 Opening ASCII mode data connection for teste.mdb.
>>>
>>> What is wrong?? PLEASE HELP ME
>>>
>>> Regards,
>>> Marco

>>
>> Same problem if you run ftp.exe and enter the commands manually (i.e.,
>> without using a script)?
>>
>> Why are you using MPUT instead of PUT? You are only specifying a single
>> file. MPUT is for specifying multiple files. What happens when you use
>> PUT?
>>
>> Also, why are you not using BIN to send in binary mode (to ensure you
>> get the same bits up in the file on the server as you have on your
>> host)? You could also add HASH to see pound signs added to each line to
>> show the progress of the PUT operation. How many #'s you see depends on
>> how large is the file that you are sending.
>>
>> Although you can change to a directory, do you have permission for that
>> username to write into that directory?
>>
>>


See my other reply as it may be a firewall problem.
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to connect ot server Diane B Windows Vista 1 06-01-2008 05:11 PM
Outlook cannot connect to server Jen XP Networking 1 03-13-2008 06:47 PM
Unable to connect the server Window XP activation Windows XP 2 09-25-2007 01:48 AM
can't connect to bellsouth's ng server ~Mike Hollywood Windows XP Basics 2 06-21-2007 03:05 AM
Cannot connect to VPN server from home PC mustgt86 XP Networking 0 07-09-2004 12:43 AM


All times are GMT. The time now is 01:51 AM.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger