Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: Imar
Forum: C# August 19th, 2006, 09:46 AM
Replies: 17
Views: 13,763
Posted By Imar
You can't. And you don't have to... Imar ...

You can't. And you don't have to...

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results...
Forum: C# August 15th, 2006, 01:35 PM
Replies: 17
Views: 13,763
Posted By Imar
I see. Move in .NET throws an IOException...

I see.

Move in .NET throws an IOException when the destination file already exists.

You'll need to check for its existence and move it manually instead. A simple wrapper method could do that...
Forum: C# August 15th, 2006, 02:41 AM
Replies: 17
Views: 13,763
Posted By Imar
It doesn't? In what kind of application are you...

It doesn't? In what kind of application are you using this? How does your code look like? I can successfully switch file names with the following code:if (System.IO.File.Exists(@"C:\Piet.txt"))
{...
Forum: C# August 14th, 2006, 02:29 PM
Replies: 17
Views: 13,763
Posted By Imar
Really?? What about the File.Move...

Really?? What about the File.Move (http://msdn2.microsoft.com/en-us/library/system.io.file.move.aspx) method??

System.IO.File.Move(oldFileName, newFileName);

This moves a file to another...
Showing results 1 to 4 of 4

 


All times are GMT -4. The time now is 10:14 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.