How to rename a file ?

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Hi,

I tried to rename a file using FileInfo but I don't see how I could do it ?

Is there a way to rename a file ?

thnx

Christian
 
Use the File classes static/Shared Move method. It doesn't seem all that
intuitive, I know.
 
* "Chris said:
I tried to rename a file using FileInfo but I don't see how I could do it ?

In VB it's 'Rename(OldPath, NewPath)'.
 

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