AutoPlay Media Studio 7.5
I am trying to copy a file from "AutoPlay\\Docs\\testmsg1.txt to a folder in C:\Program Files\Application X\TestFolder.
Wow! What I thought would be trivial is driving me crazy.
I wrote this script:
File.Copy("AutoPlay\\Docs\\testmsg1.txt", _ProgramFilesFolder .. "\\Application X\TestFolder");
error = Application.GetLastError();
if )error ~= 0) then
Dialog.Message("Error", _tbleErrorMeesages [error], MB_OKCANCEL, MB_ICONEXCLAMATION);
else
File.ExploreFolder(_ProgramFilesFolder .. "\\Application X\TestFolder");
end
I can create a folder in C: but not anthing in the Program Files especially in a nested subdirector within Program Files.
I am running Windows Vista.
All help is sincerely appreciated.![]()

Reply With Quote