?
Solved

ftp is not recognised as an internal/external command

Posted on 2004-04-21
3
Medium Priority
?
273 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

752 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