Thanks for the help
This has now been fixed. I used this code
Code:
if not Folder.DoesExist("C:\\My Games")then Folder.Create("C:\\My Games"); end File.Copy("\\AutoPlay\\Docs\\GameList.db", "C:\\My Games", true, true, false, true, nil);
if not Folder.DoesExist("C:\\My Games")then Folder.Create("C:\\My Games"); end File.Copy("\\AutoPlay\\Docs\\GameList.db", "C:\\My Games", true, true, false, true, nil);
-- Check to see if a specific folder exists. if Folder.DoesExist("C:\\My Games") then File.Copy("AutoPlay\\Docs\\GameList.db", "C:\\My Games", true, true, false, true, nil); local err = Application.GetLastError() if (err ~= 0) then Dialog.Message("Error", _tblErrorMessages[err].."\r\n".."AutoPlay\\Docs\\GameList.db", MB_OK, MB_ICONEXCLAMATION); end else Folder.Create("C:\\My Games"); end
-- Check to see if a specific folder exists. if Folder.DoesExist("C:\\My Games") then File.Copy("\\AutoPlay\\Docs\\GameList.db", "C:\\My Games", true, true, false, true, nil); else Folder.Create("C:\\My Games"); end --Check to see if an error occurred. error = Application.GetLastError(); -- If an error occurred, display the error message. if (error ~= 0) then Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION); end
if Folder.DoesExist("C:\\My Games") then File.Copy("\\AutoPlay\\Docs\\GameList.db", "C:\\My Games", true, true, false, true, nil); else Folder.Create("C:\\My Games"); end
Leave a comment: