Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't access file using FTP - PLEASE HELP

Status
Not open for further replies.

mattdirac

Programmer
Apr 11, 2001
2
US
Hi

By accident I managed to 'put' a file to my web server using ftp. the file was called "~test.gif". Now I can't delete it, rename it or access it in any way using FTP because of the tilda (~) in the file name. How do I remove this file?

Please help me.

 
I can't test it at the moment but have you tried the command

delete '~test.gif'

Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Hi Mike,

Yes I've tried using quotes - single and double. No luck. Do you (or does anyone else) have any other ideas?

Regards,

Matt.
 
I have no problem doing

rename "~test" fred

on my server, and an "mget ?t" also worked.

Tony Lawrence
SCO Unix/Linux Resources tony@pcunix.com
 
Well I tried reproducing your problem from a Linux system but I couldn't. Through ftp the following works fine for me:

delete ~test.gif
delete "~test.gif"
delete \~test.gif

What kind of systems are involved?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top