Solved

ftp is not recognised as an internal/external command

Posted on 2004-04-21
3
264 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now