By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,440 Members | 1,872 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,440 IT Pros & Developers. It's quick & easy.

How to rename a file by using ASP.NET?

P: n/a
The System.IO.FileInfo.Name is readonly.
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
Use the MoveTo method.

FileInfo fi = new FileInfo("C:\\fhqwhgads.txt");
fi.MoveTo("C:\\come on fhqwhgads.txt");
"Shao Yong" <an*******> wrote in message
The System.IO.FileInfo.Name is readonly.

Nov 18 '05 #2

P: n/a
Thanks a lot.
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.