Solved

ftp is not recognised as an internal/external command

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

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…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 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