Jump to content
  • Advertisement
Sign in to follow this  
SirLuthor

Faster renaming in Windows?

This topic is 4835 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been working on some basic file manipulation functions, and I'm wondering if there's any faster way to rename files (in Windows) then simply making a new file with the new name, and copying all the data to it (and deleting the old file of course)? I did a precursory MSDN search to see if there were any API calls I could use to do this, but as usual, my MSDN searches just turned up some more useless junk [smile] (Well in truth, that's not the norm for me, but it sure seems that way..) Anyway, if anyone knows a faster way of renaming files, I'd be most obliged!

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by SirLuthor
Thanks folks. Who would have thought to look for file renaming under 'MoveFile' [grin]


anyone who's ever been on a *nix system ;) but yeah it's odd.
It's like using MoveWindow to resize a window.

Share this post


Link to post
Share on other sites
Quote:
Original post by SirLuthor
Thanks folks. Who would have thought to look for file renaming under 'MoveFile' [grin]


It's a quirk of older developers. At the OS level there's very little difference between renaming a file and moving it around in the directory heirarchy (as long as the file stays on the same disk partition anyway).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!