FileOps $movefile error

Andy Hilton andyh at totallybrilliant.com
Fri May 16 02:48:17 UTC 2025


…..and the winner is : Mike Matthews !

Restarting Windows has resolved it - I have no idea how or why it was doing what it was doing before, but turn it off and on fixed it !!!!


Andy Hilton
Totally Brilliant Software Inc
Phone (US) : (863) 409 4870 
Phone (UK) : 0207 193 8582
Web : www.totallybrilliant.com 
Helpdesk : https://totallybrilliantsoftware.supportsystem.com/
Email : andyh at totallybrilliant.com

> On May 14, 2025, at 4:58 AM, Mike Matthews - Omnis via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
> 
> Hello Andy,
> 
> Turn it off and on.  I wonder if the file/OS thinks it is open, so restart Windows as that should set all open file stats possibly.  Works with DF1 files.
> 
> I suspect there is a way of examining a file to see if it is open, but that knowledge is above my pay grade.  And then get the file to be closed for the OS to then move.
> 
> Mike Matthews
> 
> Lineal Software Solutions
> Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>
> 
> omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>
> 
> www.lineal.co.uk<http://www.lineal.co.uk/>
> 
> www.sqlworks.co.uk<http://www.sqlworks.co/>
> 
> 
> 
> On 13 May 2025, at 22:35, Andy Hilton <andyh at totallybrilliant.com> wrote:
> 
> Warning: Unusual link
> 
> This message contains an unusual link, which may lead to a malicious site.
> Confirm the message is safe before clicking any links.
> 
> That’s the curious thing, although it is a library file that I am trying to move, it is a library that has not yet been opened by the application, so I fail to see how the file could be ‘open’ - it has just been copied down from an ftp site into a ‘downloads’ folder from where I am moving it into the appropriate position within the application setup (and as I mentioned I can manually copy it without issue)
> 
> Andy Hilton
> Totally Brilliant Software Inc
> Phone (US) : (863) 409 4870
> Phone (UK) : 0207 193 8582
> 
> 
> On May 13, 2025, at 5:30 PM, Reg Paling <reg.paling at lokanet.com> wrote:
> 
> Hi Andy,
> 
> This page:
> https://www.omnis.net/developers/resources/onlinedocs/index.jsp?detail=FunctionRef/Functions_A-Z/fileopserrorcodes.html
> says:
>  kFileOpsMoreFilesOpen   -47   One or more files are open
> Is it a library that's still open?
> 
> Kind regards,
> Reg
> 
> 
> On Wed, May 14, 2025 at 7:19 AM Andy Hilton <andyh at totallybrilliant.com>
> wrote:
> 
> Does anyone have the official meaning of error code ‘-47’ from a
> FileOps.$movefile operation ?
> 
> I have an installer trying to move files within my app from one location
> to another - both within the users ‘AppData’ area (this is on my least
> favorite side, Windows !) and I am getting this error
> 
> Note : I can manually copy the files without issue - which is why I am a
> tad confused as to what is actually going on with the FileOps call !
> 
> Andy Hilton
> Totally Brilliant Software Inc
> Phone (US) : (863) 409 4870
> Phone (UK) : 0207 193 8582
> 
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list