How do I delete a file from my FTP server?

I am using ftp_pro.  How do I write a script to delete a file from my server either using ftp_pro or visual basic?
SaybrookeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

namithsCommented:
hey u can do it using the WININET.DLL  through visual basic .


using this u can upload and download files and also delete the required file .
0
SaybrookeAuthor Commented:
I have not used this before.  I can I access the WININET.DLL?
0
plqCommented:
USE the dos command ftp <ipaddress>

log in, and then use

     ls -al

to list all files

And I think its

     rm filename

to delete
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

SaybrookeAuthor Commented:
The file I want to delete is on our remote FTP server and I do not know if I can get to our server using a dos command on my local pc.
0
plqCommented:
All you can do is give it a try. Just start a command prompt and type ftp, it will ask you for the rest
0
SicosCommented:

Hi,

Just use internet explorer to do the ftp'ing.

Start IE and type "ftp://the pc you want to connect/"

Greetings,
Sicos
0
plqCommented:
.. and right click to login if the ftp site is secured (me no want points for that tip)
0
SaybrookeAuthor Commented:
I tried the ftp: suggestion and I was able to access the server.  I will try to use this in code and se if I can access the server.
0
RanjeetRainCommented:
See this page (http://www.thescarms.com/vbasic/inetftp.asp). It teaches you to use Inte control to do so.

YOu just have to setup the things as given in the page and send a FTPRM command along with the file to delete it from the server.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SaybrookeAuthor Commented:
I answered the question myself.  I created a site in ws_ftp_pro which contained password, id, ip address etc.  In script I wrote 4 lines of code:
1.  Connect to to remote site
2.  view path to ensure I was in the right place
3. Delete all files *.*
4.  Close procedure.

I would like a refund as well as requesting you close this issue.
0
RanjeetRainCommented:
Can we see the script that solved your problem?
0
SicosCommented:
hi,

I did give a solution.

Greetings,
Sicos
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.