The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: RedXVII on March 08, 2006, 07:54:57 PM

Title: Function to rename a file
Post by: RedXVII on March 08, 2006, 07:54:57 PM
Anyone know a function to rename files?

How about moving them also, (not copy, just move).

Cheers  :U
Title: Re: Function to rename a file
Post by: zooba on March 08, 2006, 07:59:41 PM
I think you're after MoveFile for both of them.

SHFileOperation will do it aswell. :U
Title: Re: Function to rename a file
Post by: RedXVII on March 08, 2006, 08:01:15 PM
Wow, that was quick

Thanks zooba  :bg
Title: Re: Function to rename a file
Post by: PBrennick on March 08, 2006, 08:12:08 PM
RedXVII,
MoveFile can be used to rename directories, also.

Paul