Click here to Skip to main content
15,906,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If I clicked on Extract here I got error ..............

Please Solved this error.

File.Move(fileToCompress.FullName + "-" + DateTime.Now.ToString("ddMMyyyy") + ".zip", fileToCompress.FullName + ".zip");
Posted
Comments
Bernhard Hiller 1-Aug-13 2:17am    
So, hwat's the error message? File_Not_Found? Information_Missing.
MuhammadUSman1 1-Aug-13 3:59am    
What error you got?

1 solution

try this code.


C#
File.Move(Path.GetFileNameWithoutExtension(fileToCompress.FullName) + "-" + DateTime.Now.ToString("ddMMyyyy") + ".zip", Path.GetFileNameWithoutExtension(fileToCompress.FullName)e + ".zip");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900