| |
Timshel
Posts: 4
Score: 0
Joined: 3/7/2003
From: Australia
Status: offline
|
I have 2 questions... 1. I have seen mention of a function known as MoveFileEx() which I would be interested to use to move/replace a file currently in use. Is this available within VBScript, and if so, how do get to it?? 2. In the absence of MoveFileEx() I have attempted to use the 'PendingFileRenameOperations' registry value to move/replace a file in use. This is a Multi String value under 'HKLM\SYSTEM\CURRENTCONTROLSET\CONTROL\SESSION MANAGER\'. I can create this value and populate it with the necessary information using the SetMultiStringValue function from WMI's 'StdRegProv'. Additionally I would like to append my entries to any existing entries, for which I have used 'GetMultiStringValue' to retrieve the info first. This works fine however, I encounter issues when there are blank entries in the value - which I understand is used by some install programs to delete files in use. Only the entries before the blank are returned by 'GetMultiStringValue' anything after this is excluded. This problem is apparent on Win2K but not on WinXP. Any info is greatly appreciated... Cheers, Timshel
|
|