revMoveFolder on Windows

Knapp Martin martyknappster at gmail.com
Fri Jan 25 14:07:15 EST 2019


I made a simple test stack to move folders, saved as a standalone and it works fine - even moving the folder I’m trying to move in my real app. In my app where I’m having trouble (works fine on Mac but not on Windows) the result is returning “1” which isn’t really helpful!

Marty
> On Jan 24, 2019, at 5:32 PM, Ralph DiMola via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> I've seen that with Excel with either the file or the folder(can't remember). I opened a spreadsheet and closed it but the file/folder was still locked until I closed Excel.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdimola at evergreeninfo.net
> 
> 
> -----Original Message-----
> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Brian Milby via use-livecode
> Sent: Thursday, January 24, 2019 8:22 PM
> To: How to use LiveCode
> Cc: Brian Milby
> Subject: RE: revMoveFolder on Windows
> 
> I think programs can lock a folder by having it set as the default folder (or it could just be a side effect of them storing something there).  I’ve seen it every once in a while in other programs, but can’t remember the last time.  I have not tried to see if I could reproduce in LiveCode yet.  Ralph’s suggestion sounds like a good thing to try.
> 
> Thanks,
> Brian
> On Jan 24, 2019, 7:05 PM -0600, Ralph DiMola via use-livecode <use-livecode at lists.runrev.com>, wrote:
>> Beyond the obvious of having files open in the folder could it be that 
>> if you trying to move LC's current defaultfolder it causes a problem 
>> on Windows?
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdimola at evergreeninfo.net
>> 
>> 
>> -----Original Message-----
>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On 
>> Behalf Of Knapp Martin via use-livecode
>> Sent: Thursday, January 24, 2019 7:21 PM
>> To: Use Livecode
>> Cc: Knapp Martin
>> Subject: revMoveFolder on Windows
>> 
>> I have an app that allows users to create documents and store then in 
>> a specified folder. Via a preference setting they can move the folder 
>> to a location of their choosing. I use revMoveFolder to do this. You 
>> can also move the folder where you want and then drag and drop it on 
>> the preference stack to establish the path to where it is.
>> 
>> This works fine on Mac but not on Windows - it fails. In fact when the 
>> app is open and I try to manually move the folder, Windows tells me 
>> "The action can't be completed because the folder is open in another program."
>> 
>> I understand that if a file was open by the app that this would come 
>> into play but how is a folder open to another program? Is there a way 
>> around this?
>> 
>> Marty
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list