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?
 
RanjeetRainConnect With a Mentor Commented:
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
 
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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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
 
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
 
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
All Courses

From novice to tech pro — start learning today.