PDA

View Full Version : Just a liitle a little bit of help with file copy


bobbie
01-07-2007, 03:17 PM
I can copy to the source folder but for the life of me I can't get it to copy to the AutoPlay\\Images folder.
Someone show me how it is done on that line please :)
Thanks so much .
ImgF = Dialog.FileBrowse(true, "Locate File", _DesktopFolder, "All Files (*.*)|*.*|", "", "dat", false, false);
if ImgF[1] ~= "CANCEL" then
TheFile = ImgF[1]
if ImgF[1] ~= "CANCEL" then
File.Copy(ImgF[1], _SourceFolder .. "\\background.jpg", true, true, false, true, nil);
Image.Load("Image7", TheFile);
Page.Redraw();
end
end

bobbie
01-07-2007, 04:01 PM
Never mind I did get it to work using this if anyone else would need it.
ImgF = Dialog.FileBrowse(true, "Locate File", _DesktopFolder, "All Files (*.*)|*.*|", "", "dat", false, false);
if ImgF[1] ~= "CANCEL" then
TheFile = ImgF[1]
if ImgF[1] ~= "CANCEL" then
--tblFileInfo = String.SplitPath(ImgF[1])
File.Copy(ImgF[1], _SourceFolder.."\\AutoPlay\\Images\\background.jpg", true, true, false, true, nil);
Image.Load("Image7", TheFile);
Page.Redraw();
end
end