renaming a file

  • Thread starter Thread starter Dj
  • Start date Start date
D

Dj

How can I read a file named %hostname%.zip.crypto.zip and rename them
to %hostname%.zip, bacsically stipping off the .crypto.zip. So it may
or may not be a rename call.

Thanks
 
Maybe something like:

File.Move(System.Net.Dns.GetHostName() + ".zip.crypto.zip",
System.Net.Dns.GetHostName() + ".zip");

?
 
Back
Top