vb script - rename file
My knowledge of vbs scripting is very limited and i have searched a bit for some code to rename a file and found some code but when i run it within an msi it errors it works when jsut simply running .vbs file but not when i place code with in a custom action in an msi.
Was wondering if anyone would know of better way to rename a file?
Dim oFSO
Dim sSourceFile
Dim sDestinationFile
Set oFSO = CreateObject("Scripting.FileSystemObject")
sSourceFile = "C:\Program Files\Caddsman\Architect 2003\Library\Openings\Windowbuilder.txt"
sDestinationFile = "C:\Program Files\Caddsman\Architect 2003\Library\Openings\Windowbuilder.ini"
oFSO.MoveFile sSourceFile, sDestinationFile
Set oFso = Nothing
Was wondering if anyone would know of better way to rename a file?
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
MSI_repackager
19 years ago
Posted by:
ryath
19 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.