Sign in to follow this  
SirLuthor

Faster renaming in Windows?

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this