PDA

View Full Version : problem with file.copy


RoSmecher
02-28-2005, 02:44 PM
i tried to copy a file using the installer and this is my code.

File.Copy(SessionVar.Expand("%SystemFolder%\\wbocx.ocx"), "%AppFolder%", true, true, false, true, nil);

unfortunatly it did not work. as you can see i am trying to copy the file into my application folder (where the user chose to install the program).

what is the proper way to do this? thanks for your time

Brett
02-28-2005, 03:06 PM
What about:

File.Copy(SessionVar.Expand("%SystemFolder%\\wbocx.ocx"), SessionVar.Expand("%AppFolder%"), true, true, false, true, nil);

or:

File.Copy(SessionVar.Expand("%SystemFolder%\\wbocx.ocx"), SessionVar.Expand("%AppFolder%\\wbocx.ocx"), true, true, false, true, nil);