Link to home
Start Free TrialLog in
Avatar of tornadog
tornadog

asked on

windows commandline ftp

I am using the commandline ftp to download a bunch of files everyday and then delete the files from the ftp. The download part works great using mget *. but when I do mdel * I get "550 Access Denied". I tried manually deleting the files using filezilla ftp client and I was able to delete it no problem. I am using the same credentials on both commandline and filezilla. What is the difference?
Avatar of Dav Gray
Dav Gray
Flag of United Kingdom of Great Britain and Northern Ireland image

Are you running cmd line in Administrator mode?

If not, this might be causing the issue.
Avatar of tornadog
tornadog

ASKER

I am already running it as adminsitrator. Thats not it. thanks
Avatar of Firmin Frederick
Do you own the ftp server? Do you know if it's running Microsoft FTP or filezilla or whatever?

Just asking so that we know whether you have access to the ftp server configuration and / or what the actual ftp engine is.

Just off the top of my head the GUI client usually identifies itself, sets transfer protocols, and data transfer type all before authenticating so there is a more complex environment from the start.

The cmd line starts of with very little other than "I'm using ASCII on port  21 here's my user & password".  So yea denying the ftp cmdline client access may be down to the datagram pathway I.E. active or passive FTP, or, it may be a case of invoking admin status before the DEL cmd much like how Linux environments work.

That aside, I vaguely recall being able to set characteristics in IIS 7 and filezilla server that requires or blocks cmd line client in favour of GUI client when it comes to performing sensitive operations.  

Meh! I could be horribly wrong!

Its a third party ftp server, so I have no control over it. I can download, upload files, just cant delete them from commandline. I am trying to write a script that would download the daily files put there and then delete them. if I can delete, then  I will have to figure out a way to read the file date and only download files from the current day.
ASKER CERTIFIED SOLUTION
Avatar of tornadog
tornadog

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
worked around problem since I could not find a true solution