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
  #11  
Old 05-11-2008, 02:57 PM
Big Al
 
Posts: n/a
Default Re: I can't connect to ftp server with ftp.exe

Marco wrote:
> 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.
>>

You only put prompt in once. Its a toggle type of command. Just once
at the beginning of the script and any mput command from then on will
not prompt you for 'y/n' response.
It won't change your problem, I'm just trying to make your script a bit
more streamlined if you get the 150 error to correct.

Has this worked with this site before?

I've had a lot of issues with passive / nonpassive mode transfers. Some
servers don't like one or the other. Problem is that windows ftp will
only do it one way and not the other. If you have another program like
the freeware filezilla, you can set up the site and pick passive or not.
The only command line program I've seen that works in the mode
opposite to windows' ftp, is 'move it freely'. Its a free scriptable
ftp program just like windows ftp is.

I think someone else asked if you could do an 'ls' command. I've found
that if ls cannot be done, then this is a good indication of the passive
/ non-passive mode problem.

Just suggestions.
Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
  #12  
Old 05-11-2008, 04:18 PM
Marco
 
Posts: n/a
Default Re: I can't connect to ftp server with ftp.exe

Hi,

Here it is the log of the ftp command line:

230 User geral logged in.
ftp> prompt
Interactive mode off .
ftp> cd db
250 CWD command successful.
ftp>
ftp> mput pobidos.mdb
200 PORT command successful.
150 Opening ASCII mode data connection for pobidos.mdb.

and it stops in the last line» 150.........

I tried from another pc with the same internect connnection and it worked.

This pc has the firewall off.

I'm getting crazy.

Cheers,
Marco
Reply With Quote
  #13  
Old 05-11-2008, 06:22 PM
Big Al
 
Posts: n/a
Default Re: I can't connect to ftp server with ftp.exe

Marco wrote:
> Hi,
>
> Here it is the log of the ftp command line:
>
> 230 User geral logged in.
> ftp> prompt
> Interactive mode off .
> ftp> cd db
> 250 CWD command successful.
> ftp>
> ftp> mput pobidos.mdb
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for pobidos.mdb.
>
> and it stops in the last line» 150.........
>
> I tried from another pc with the same internect connnection and it worked.
>
> This pc has the firewall off.
>
> I'm getting crazy.
>
> Cheers,
> Marco

Okay, but I think you need to try passive and non-passive modes and find
out if that setting works. I find it all the time at clients. I know,
I've read your comment that another pc works.

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

Can you teach me how to try to use in passive and non-passive mode?

Some example.

Thanks.
Marco

"Big Al" wrote:

> Marco wrote:
> > Hi,
> >
> > Here it is the log of the ftp command line:
> >
> > 230 User geral logged in.
> > ftp> prompt
> > Interactive mode off .
> > ftp> cd db
> > 250 CWD command successful.
> > ftp>
> > ftp> mput pobidos.mdb
> > 200 PORT command successful.
> > 150 Opening ASCII mode data connection for pobidos.mdb.
> >
> > and it stops in the last line» 150.........
> >
> > I tried from another pc with the same internect connnection and it worked.
> >
> > This pc has the firewall off.
> >
> > I'm getting crazy.
> >
> > Cheers,
> > Marco

> Okay, but I think you need to try passive and non-passive modes and find
> out if that setting works. I find it all the time at clients. I know,
> I've read your comment that another pc works.
>
>

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

Marco wrote:
> Can you teach me how to try to use in passive and non-passive mode?
>
> Some example.
>
> Thanks.
> Marco
>
> "Big Al" wrote:
>
>> Marco wrote:
>>> Hi,
>>>
>>> Here it is the log of the ftp command line:
>>>
>>> 230 User geral logged in.
>>> ftp> prompt
>>> Interactive mode off .
>>> ftp> cd db
>>> 250 CWD command successful.
>>> ftp>
>>> ftp> mput pobidos.mdb
>>> 200 PORT command successful.
>>> 150 Opening ASCII mode data connection for pobidos.mdb.
>>>
>>> and it stops in the last line» 150.........
>>>
>>> I tried from another pc with the same internect connnection and it worked.
>>>
>>> This pc has the firewall off.
>>>
>>> I'm getting crazy.
>>>
>>> Cheers,
>>> Marco

>> Okay, but I think you need to try passive and non-passive modes and find
>> out if that setting works. I find it all the time at clients. I know,
>> I've read your comment that another pc works.
>>
>>

Downlod moveitfreely. You'll have to install it and set it for
whichever works. It has the option on the command line to set either.
But the bottom line is, windows ftp will do nothing for you to test,
it has no option.

This may all be for naught, but I've hit your roadblock at the LS many
times. It always fixed the issue. Okay, 99%.
http://www.bestsoftware4download.com...-mkoxecyi.html

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

That link is for version 5.0.
You can get it on softpedia here
http://www.softpedia.com/get/Interne...t-Freely.shtml
version 3.1
Reply With Quote
  #17  
Old 05-11-2008, 09:32 PM
Big Al
 
Posts: n/a
Default Re: I can't connect to ftp server with ftp.exe

Big Al wrote:
> That link is for version 5.0.
> You can get it on softpedia here
> http://www.softpedia.com/get/Interne...t-Freely.shtml
> version 3.1


I just loaded the 3.1 to review for myself.
It includes a 'passive' command that ftp.exe does not.
Its just like prompt, in that it toggles the passive transfer mode on
and off.
You should be able to run your same script but just replace ftp.exe in
the batch file with ftps.exe. And of course add the 'passive' command
in the script or not and see if either works.

Bottom line is ftps, is supposed to be identical to ftp. It also allow
secure transfer as well.

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

GREAT GREAT GTREAT.

How can I pay you??

But I have another problem. Now it puts the *.mdb in the server but with
zero bytes. But now with the passive mode it wok, don't hangs on the 150
command.

But, way the access files stays with zeros bytes?

Regards,
Marco






"Big Al" wrote:

> Big Al wrote:
> > That link is for version 5.0.
> > You can get it on softpedia here
> > http://www.softpedia.com/get/Interne...t-Freely.shtml
> > version 3.1

>
> I just loaded the 3.1 to review for myself.
> It includes a 'passive' command that ftp.exe does not.
> Its just like prompt, in that it toggles the passive transfer mode on
> and off.
> You should be able to run your same script but just replace ftp.exe in
> the batch file with ftps.exe. And of course add the 'passive' command
> in the script or not and see if either works.
>
> Bottom line is ftps, is supposed to be identical to ftp. It also allow
> secure transfer as well.
>
>

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

it now start to send the mdb file.

I'm a newbie in ftp. Is this ok to upload subfolders?

Marco




"Big Al" wrote:

> Big Al wrote:
> > That link is for version 5.0.
> > You can get it on softpedia here
> > http://www.softpedia.com/get/Interne...t-Freely.shtml
> > version 3.1

>
> I just loaded the 3.1 to review for myself.
> It includes a 'passive' command that ftp.exe does not.
> Its just like prompt, in that it toggles the passive transfer mode on
> and off.
> You should be able to run your same script but just replace ftp.exe in
> the batch file with ftps.exe. And of course add the 'passive' command
> in the script or not and see if either works.
>
> Bottom line is ftps, is supposed to be identical to ftp. It also allow
> secure transfer as well.
>
>

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

Marco wrote:
> it now start to send the mdb file.
>
> I'm a newbie in ftp. Is this ok to upload subfolders?
>
> Marco
>
>
>
>
> "Big Al" wrote:
>
>> Big Al wrote:
>>> That link is for version 5.0.
>>> You can get it on softpedia here
>>> http://www.softpedia.com/get/Interne...t-Freely.shtml
>>> version 3.1

>> I just loaded the 3.1 to review for myself.
>> It includes a 'passive' command that ftp.exe does not.
>> Its just like prompt, in that it toggles the passive transfer mode on
>> and off.
>> You should be able to run your same script but just replace ftp.exe in
>> the batch file with ftps.exe. And of course add the 'passive' command
>> in the script or not and see if either works.
>>
>> Bottom line is ftps, is supposed to be identical to ftp. It also allow
>> secure transfer as well.
>>
>>

With FTP I've never found a way to do sub folders.
Obviously you can do:
cd x
mput *.*
cd ../y
mput *.*
cd ../z
mput *.*

If you want to do extensive subfoldering, a formal program like
filezilla will do that. Its free. Problem is, I don't think you can
schedule or write scripts. "THINK" I said.
I use filezilla to upload my web page. I can build a whole set of
folders and bing, just send the folder et al.

Not sure what you are doing and why the scripting. So take it from there.
Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
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 10:18 PM.


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