With the previous post I had on doing a SUF6 to SUF8 conversion.. I need to rename a group of files. I have tried to use the File.Rename() command but the script would grow to be quite long if I tried it this way. Tried to use the File.Copy .. where the source files are going to be copied to the same folder they started in but with different file names.

For example..
C:\MBS\SYSTEM\DB_USER.INI.NEW -> C:\MBS\SYSTEM\DB_USER.INI
C:\MBS\SYSTEM\DESED.INI.NEW -> C:\MBS\SYSTEM\DESED.INI
etc.
But I must be doing something wrong as the files are not getting copied.

Here is what I have in my script.

Code:
File.Copy(SessionVar.Expand("%System%") .."\\*.ini.new",
		  SessionVar.Expand("%System%") .."\\*.ini", false, false, false, false);
And here is what the log file shows..

[09/09/2011 15:32:40] Notice Start project event: On Post Install
[09/09/2011 15:32:40] Error Script: On Post Install, [8]: File.Copy(SessionVar.Expand("%Blk%") .."\\*.blkn", (1020)
[09/09/2011 15:32:40] Error Script: On Post Install, [20]: File.Copy(SessionVar.Expand("%Siz2%") .."\\*.siz.new", (1020)
[09/09/2011 15:32:43] Error Script: On Post Install, [86]: File.Copy(SessionVar.Expand("%System%") .."\\*.ini.new", (1020)
[09/09/2011 15:32:43] Success Run project event: On Post Install
Is it a variable issue .. again?

Kevin Williams
MBS Support Staff/Programmer