Solved

ftp is not recognised as an internal/external command

Posted on 2004-04-21
3
270 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
3 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 280 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

Suggested Solutions

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…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

685 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