IntControl 30

Syntax:

IntControl (30, p1, p2, 0, 0) {*NT}

 

Performs a delayed file move.

p1 source file
p2
 destination

The file is not actually moved until the operating system is restarted. This can be useful for replacing system files. "Sourcefile" must be a single file name, with no wildcards. "Destination" may be a file name (which may contain wildcards) or a directory name. The destination file MUST be on the same drive as the source file. If the destination file exists, it will be replaced without warning. "Destination" can also be a NULL string (""), in which case the source file will be deleted when the operating system is restarted.

IntControl 30 needs to be run as an elevated administrator on Vista/2008 and newer with UAC enabled.

This function returns "1" on success, "2" if it performed a regular FileMove instead, and "0" on failure.