file - Find if zip folder is present in c# -
Need Quick Help Assume that a ZIP folder named by name I tried to use the You have a file and method Example: See more for more information. test (d: \ test.zip) Is . I need to check whether zipped folder (i.e.
test )
d -directory is present or what is there, it does not make any difference here 'and' code 'test Transfer to .zip in other directories
Directory.GetDirectories () method, but it will work only for folders.
to check the file
File .Exists (path) can be used. To move a file (Source, destination) .
var zipFile = "d: \\ test.zip"; Var destination = "d: \\ some \ \ other \\ directory"; If (file.exists (zipfile)) {File.Move (zipfile, path.comben (destination, path.gETFileName (zipfile))); }
Comments
Post a Comment