?
Solved

ftp is not recognised as an internal/external command

Posted on 2004-04-21
3
Medium Priority
?
276 Views
Last Modified: 2012-06-21
Hi
i was running the sheel command in vb to run a batch program from windows environment.
The ftp.bat file should take the data file and send it to remote server through FTP. when i tried to exceute the program,
i was getting the error
'ftp is not recognised as an internal/external command operable program or batch file"

Can some one please tell me why i get this kind of error?.

The path shown in the cmd mode screen is "C\Winnt\system32\cmd.exe".

I typed cmd from windows\start and gone to dos command prompt
then when i type ftp at the dos command prompt i get the same above mentioned error!!!!!!!...

Can some one please let me know how to exceute an ftp batch program from windows vb program..


Thanks a lot for the help
0
Comment
Question by:vdevarao
1 Comment
 
LVL 67

Accepted Solution

by:
sirbounty earned 1120 total points
ID: 10883903
I think the problem may be the confusion of ftp.bat and ftp.exe
Try renaming your ftp.bat file to myftp.bat (or something else that may make more sense to you).

Also- if you're doing a VB Shell - you'd probably get better results using
Shell ("CMD /K C:\MyFolder\MyFTP.BAT")
This will leave the command window open, in case there are any errors.  You can change /K to /C to close the window afterwards, if it works...  
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

One of my most closely kept secrets is revealed in this discussion How to output text on the same line This question was recently posted in EE by Simon336697 (http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_2459…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

862 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