Posts

Showing posts from June, 2016

Featured Post

Smart Product designer

Image
download and purchase link: https://alkanyx.com/item/49/Smart+Product+designer

Live preview : http://smartproductdesigner.000webhostapp.com/

Smart Product Designer is a  tool to create your own product and get directly from your website. It is well documented, very easy to customize and use. It is build using most advance technologies including javascript, jQuery and html5.
Features Choose different product from collectionAdd custom texts to product.Change text colorChange the size and font of the TextLet the user drag, move or remove elementsAdd images to product selected from art gallery or browse it from systemDesign both frontside and back-sideShows preview while designingDownload designVery easy to customize and useHere is the purchase link : https://alkanyx.com/item/49/Smart+Product+designer

Recursively delete files from Directory C#.NET

Recursively delete files from given directory keeping the directory structure intact C#.NET
To get all the files present in the subdirectories of the given directory, use "SearchOption.AllDirectories"
DirectoryInfo DirInfo= newDirectoryInfo(directoryPath); DirInfo.GetFiles("*", SearchOption.AllDirectories).ToList().ForEach(file=>file.Delete());

The above code will delete all the files for the given directory while keeping the structure of directory intact. To send files in recycle bin instead of deleting it from system use "FileSystem.DeleteFile" function of VisualBasic assembly. Add reference to VisualBasic dll and add "using Microsoft.VisualBasic.FileIO"
DirInfo=newDirectoryInfo(directoryPath); List<FileInfo> fileList=DirInfo.GetFiles("*",SearchOption.AllDirectories).ToList(); foreach(FileInfofile