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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Silly question on FTP

Status
Not open for further replies.

areza123

Programmer
Jul 4, 2002
60
IN
I'm trying to ftp files from my Windows 2000 desktop to my unix box. I use ftp on windows command prompt. My problem is that once a folder has files in it, I can't remove it using the conventional UNIX rm -r option. If I issue rmdir folder_name - from my Windows desktop after ftp - I get the error message 550 folder_name: The directory is not empty. If I issue rm -r folder_name i get the error message 550 -r: The system cannot find the file specified.

Sorry if this is the wrong forum to ask this question - I just wasn't sure ? Its also so stupid. Why can't microsoft stick to the conventional options of rm ?
 
If my guess not wrong, you seemed to remove directory by ftp command. Did you type the command like these?
ftp> rmdir -r folder_name
Reason: No -r option of rmdir in ftp command. You must remove all files in the folder first. And, suggested that you should do all of these in your unix machine rather than by a ftp client.



tikual
 
Thanks for the reply. But assume for a moment that I can't login to my unix box for some security reasons ? What is the alternative using windows ftp ?
 
I already said that, you must remove the files first then remove the directory after.
ftp> cd dirName
ftp> delete filename
ftp> cdup
ftp> rmdir dirName

You should type 'help' to know more commands
ftp> help

tikual
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top