Larva King
06-14-2007, 06:04 PM
I am trying to copy a file from my disc by pressing a button to a folder in my program files. I want to use a variable for my harddrive as if the drive letter is unknown. I dont want to repeat the command C, D,E, F, G, etc.
what is wrong with the command below it does not work when I use it?
File.Copy("<Folder>\\<file>", "%systemdrive%\\Program Files\\<Folder>\\", true, true, false, true, nil);
However it does work when I use "C:\\Program Files\\<folder>\\
what is wrong with the command below it does not work when I use it?
File.Copy("<Folder>\\<file>", "%systemdrive%\\Program Files\\<Folder>\\", true, true, false, true, nil);
However it does work when I use "C:\\Program Files\\<folder>\\