Re: [OT] FTP client problems

2013-10-17 Thread David Richards
David, I know this might be a bit vague but I seem to recall discovering the ftp client you use at the command prompt doesn't do something it should. eg perhaps it doesn't support PASV or something like that. I know we can't connect to our ftp server from it and have to use windows explorer or

RE: [OT] FTP client problems

2013-10-17 Thread Jorke Odolphi
Bottom line, as David said - you're out of luck if you want a passive transfer from ftp.exeftp://ftp.exe you can type 'pasv', 'quote pasv' as much as you want but ftp.exeftp://ftp.exe will just set it back to active - I think it's a port command or similar - if you want to verify this just

Re: [OT] FTP client problems

2013-10-17 Thread Greg Keogh
Re: prescription - it isn't polite to make fun of people with mental illnesses. http://www.riagenic.com/archives/934 Good lord, what little chance would I ever have of seeing that post or knowing such a thing?! It was a surprising coincidence (apologies to Scott just in case) -- Greg

Re: [OT] FTP client problems

2013-10-17 Thread David Connors
Command prompt ftp doesn't do pasv. You need to use client that does or get a stateful firewall or use a proxy On 17/10/2013 3:51 PM, Greg Keogh g...@mira.net wrote: David, FileZilla works perfectly by default and lists the files and I can see the following in the trace (pasted below). What

Re: [OT] FTP client problems

2013-10-17 Thread Greg Keogh
David, we suspected a firewall at first, but it was ruled out a few days ago. If ftp.exe doesn't do PASV at then I was accidentally wasting my time. Web searches on this matter now hint that you're right, but I would never have guessed such a stupid thing could be true. My little C# client is

Problem with FileSystem.DeleteFile method in root directory

2013-10-17 Thread Ian Thomas
This is situation is for a standard user on Windows 7. There is no such problem on pre-Vista Windows versions - and I assume the Windows 8 behaviour is similar to that on Windows 7. I want to use the Microsoft.VisualBasic assembly's FileSystem.Delete method universally, but can't work out how to

Re: Problem with FileSystem.DeleteFile method in root directory

2013-10-17 Thread Greg Keogh
Ian, years ago I remember seeing a QA about how to NOT send things into the recycle bin, and I vaguely recall it required a Win32 API call probably in shell32. If you can find that call and reverse the flag it might do what you want. Wait, it might be

RE: Problem with FileSystem.DeleteFile method in root directory

2013-10-17 Thread Ian Thomas
David Re FileIOPermissions - yes, I quickly realised that it is not relevant. On FileSystem.DeleteFile, I think the appearance of the documentation for different .NET versions led me to think there was change. I don't see difference in behaviour for 3.5/4.0/4.5. All of the above is not really

Re: [OT] FTP client problems

2013-10-17 Thread Greg Keogh
You do need a higher end firewall though. I didn't want to confuse matters previously, but now things have calmed down I can add that the offending server is actually inside an Amazon AWS server instance. I turned off the Windows firewall ages ago, but Amazon have their own Security Group

Re: Problem with FileSystem.DeleteFile method in root directory

2013-10-17 Thread Greg Keogh
Ian, I saw some people interop calling the SHFileOperation function with a SHFILEOPTSTRUCT argument. They weren't doing what you are, but this function seems to give you total control over what happens. Maybe the fine print on the function and struct and all the weird flag bits might explain the

Re: [OT] FTP client problems

2013-10-17 Thread Grant Maw
Just a side-comment - maybe we're luddites here, but we use FTP all the time to get things from A to B. Every single day. I know it's old, but it's still useful. On 18 October 2013 09:46, Greg Keogh g...@mira.net wrote: You do need a higher end firewall though. I didn't want to confuse

Re: [OT] FTP client problems

2013-10-17 Thread David Connors
FTP is arguably a lot better for uploads as well as network devices don't make the same assumptions about length of connections etc with FTP that they do with HTTP. David Connors da...@connors.com | M +61 417 189 363 Download my v-card: https://www.codify.com/cards/davidconnors Follow me on

RE: Problem with FileSystem.DeleteFile method in root directory

2013-10-17 Thread Ian Thomas
Greg SHFileOperation has a lot of detail (I had a brief look yesterday, your link). I was looking for a pure .NET method, rather than interop - but will go with what is needed of course. There is a CodeProject tip http://www.codeproject.com/Tips/462878/How-to-Delete-a-File-or-Folder-to-Re

RE: Problem with FileSystem.DeleteFile method in root directory

2013-10-17 Thread Ken Schaefer
Does the user actually have permission to restore the item to the root of c:\? I tested on my Win8 machine, and the user is prompted with a UAC prompt. Maybe the inability to restore the file might dictate whether the file goes into the recycle bin or not? Cheers Ken From: