|
Hi!
I need HELP!
I tired!
I don't know how to delete folders with
all subfolders(!!!) and containing files(!!!) on FTP in C#.
I use:
public void Delete()
{
DelFiles(FileList.SelectedItems[0].Tag as FTPfileInfo);
MessageBox.Show("DONE!");
}
void DelFiles(FTPfileInfo directory)
{
ftplib.ChangeDir(directory.FullName);
FTPdirectory dir = ftplib.ListDirectoryDetail();
foreach (FTPfileInfo fi in dir)
{
ftplib.ChangeDir(fi.Path);
if (fi.FileType == FTPfileInfo.DirectoryEntryTypes.File)
{
rm(fi.Filename);
}
else
{
DelFiles(fi);
}
}
}
It's only delete of files.
I need delete all.
Help me please!!!
Hello from Ukraine!
|
|
|
|
|
see
ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref10/html/T_System_Net_WebRequestMethods_Ftp_Members.htm
Hello from Russia
|
|
|
|
|
Where this page?
Please send it to me:
case@me.by
Hello from Ukraine!
|
|
|
|
|
http://msdn2.microsoft.com/en-us/library/system.net.webrequestmethods.ftp_members.aspx
|
|
|
|
|
Here nothing say about recursive folder delete!
Did any can help me?
I am a developer of FileManager ("Hermit").
I will write helper in "About"-"HELPER"
Hello from Ukraine!
|
|
|
|
|
так а что там не понятного? вроде все доступно написано, если в папки есть что-то еще, это чтото еще в аррай по типам папка\файл раскидай, и делить все по очереди. непонятно будет зайди на www.csharp.net.ru все распишут что непонятно.
|
|
|
|
|
|
hmmm... what?
Read this[^]
-- modified at 13:43 Saturday 13th May, 2006
|
|
|
|
|
Hello
I am using .net 2.0 windows application. I am using datagridview. I want to display the data in master and child relation ship. i.e displaying in the form of Expand & Collase mode.
This is straight forward in .NET 1.1 winforms DataGrid.
anybody anysounds
plz help how to do this usng VS 2005.
regards
bhargavi
|
|
|
|
|
|
This is my XML input:
<authentication xmlns="Authentication">
<userid>testUser
<password>password
<mode>2
This is my XML Schema Input:
<xs:schema attributeformdefault="unqualified" elementformdefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="Authentication"> <xs:complextype> <xs:sequence> <xs:element name="UserID" type="xs:string" minoccurs="1"> <xs:element name="Password" type="xs:string" minoccurs="1"> <xs:element name="Mode" type="xs:int" minoccurs="1">
ItsMe
|
|
|
|
|
xmlStream = new FileStream("input.xml", FileMode.Open);
xsdStream = new FileStream("input.xsd", FileMode.Open);
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.Load(xmlStream );
xmlDocument.Schemas.Add(null, XmlReader.Create(xsdStream ));
xmlDocument.Validate(new ValidationEventHandler(this.ValidationHandler));
private void ValidationHandler(object sender, ValidationEventArgs e)
{
}
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
www.troschuetz.de
|
|
|
|
|
I tried the function but
xmlDocument.Validate(new ValidationEventHandler(this.ValidationHandler));
is not calling the below function.
private void ValidationHandler(object sender, ValidationEventArgs e){// Do something}
Is there anything else to be done to link the eventhandler with the below function
ItsMe
|
|
|
|
|
am i supposed to register the event . if so how to do it
ItsMe
|
|
|
|
|
No, there's nothing more to do. The code works perfectly in my application.
Note that the event handler only gets executed if your xml file is invalid wrt. to the schema.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
www.troschuetz.de
|
|
|
|
|
Thanks Its working fine
ItsMe
|
|
|
|
|
How to implement Soap Exception class in web service methods
ItsMe
|
|
|
|
|
What do you mean with implement. If you need to throw such an exception just do it:
throw new SoapException();
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
www.troschuetz.de
|
|
|
|
|
I guess if i use soap exception class i can customize and output the error message in XML tag. I can also customize the error message through soap exception class. Can u give me a simple example.
ItsMe
|
|
|
|
|
How to use "The Message property of the original exception" which is a property of soap exception class.
ItsMe
|
|
|
|
|
hi
what is binding source in vs2005 and why oledb and sqldataadapter does not exist in vs2005 ?
please help me how to use they in vs2005 and how to use ado 2005 ?(with source code or tutorial)
|
|
|
|
|
that is not possible that there is no oledb and adapters in vs2005... did you check the System.Data.OleDb namespace?
if not try adding the refferance to it to your project (it might not be there?).
and if still not yuo have a problem in your .NET framework or VS2005
|
|
|
|
|
thanks ..
i know this but i want to add oledb and sqldataadapter in design time ..
|
|
|
|
|
oh, then go to the Data tab and choose "choose items", sort it by namespace and you can add all your "troubles" in design time as you would like
|
|
|
|
|
I have a small application that i've made. It runs in the system tray. I'm facing a wierd problem. When I try to shut down Windows XP. All the applications exit except mine. I have to manually close my application using the task manager and click the shutdown button again. only then does XP shut down. What could be the cause of this? Is it because I havent wriiten code for window messages such as WM_SHUTDOWN?
|
|
|
|