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");

?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top