Link to home
Start Free TrialLog in
Avatar of Saybrooke
Saybrooke

asked on

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?
Avatar of namiths
namiths

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 .
Avatar of Saybrooke

ASKER

I have not used this before.  I can I access the WININET.DLL?
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
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.
All you can do is give it a try. Just start a command prompt and type ftp, it will ask you for the rest

Hi,

Just use internet explorer to do the ftp'ing.

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

Greetings,
Sicos
.. and right click to login if the ftp site is secured (me no want points for that tip)
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.
ASKER CERTIFIED SOLUTION
Avatar of RanjeetRain
RanjeetRain

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Can we see the script that solved your problem?
hi,

I did give a solution.

Greetings,
Sicos