Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

FS106

I do this:

ControlsOCXFolder="D:\Revsoft\Controls"
utility("MAKEDIR",ControlsOCXFolder)

//******SRP OLE******//
errCodes=''
Ok=CopyOSFile('SRPControls.OCX', ControlsOCXFolder, 1)
if Ok else
status = Get_Status(errCodes)
if status then
FsMsg(errCodes)
end
end

then get message FS106 Access denied by operating system.
Tried different folders and drives.

What have I done wrong. (where could some windows/OI setting be screwed)

Comments

  • Does the target folder actually get created?
  • Yes and I can manually copy/paste
  • edited October 2019
    Different PC, same error
    Will try a completely different file
  • Will try a completely different file


    Good idea. If that also fails, try using the Windows Temp folder as another comparison test.
  • Ok=CopyOSFile('c:\temp\New Text Document.txt', ControlsOCXFolder, 1)

    Fail

    Ok, back to what I have been doing for years. (Yes have UAC - exclude etc etc)
  • this works:

    osread OcxFile from 'SRPControls.OCX' then
    oswrite OcxFile to ControlsOCXFolder:"\SRPControls.OCX"
    end
Sign In or Register to comment.