SoFunction
Updated on 2025-03-09

Design the implementation code for deleting folders in network hard disk


private void BtnDelete_Click(object sender, e)
{
 DeleteThings();
}

private void DeleteThings(string FullPath)
{
if((".")>0) //Delete the file
 {
(FullPath);
LoadDir(CurrentPath); //Reload the current directory
 }
else //Delete the directory
 {
(FullPath);
LoadDir(CurrentPath); //Reload the current directory
 }
}