Connecting Tech Pros Worldwide Forums | Help | Site Map

renaming a file

Dj
Guest
 
Posts: n/a
#1: Nov 16 '05
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


John Wood
Guest
 
Posts: n/a
#2: Nov 16 '05

re: renaming a file


Maybe something like:

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

?

--
John Wood
Blog: http://spaces.msn.com/members/johnwood/


"Dj" <h8_bsod@yahoo.com> wrote in message
news:1104859457.407529.219180@z14g2000cwz.googlegr oups.com...[color=blue]
> 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
>[/color]


Closed Thread