There is a class on UT that lets you launch an EXE and then wait until it
exits before you carry on.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Cushing
Sent: 21 September 2006 14:41
To: [EMAIL PROTECTED]
Subject: Re: Tracking edits to files stored internally by app

Malcolm Greene wrote:
> Scenario: An application tracks image files by storing images in a table
> or by storing paths to images kept in a managed folder. When user needs
> to edit an image, we plan to copy the image file from table (or managed
> folder) to temp location and launch it via Paintbrush or an image editor
> of user's choice.
>
> Question: Any suggestions for detecting that a user has edited an image
> file so we can store the updated copy? I'm thinking that we can track
> these temp paths and at application shutdown, copy back changed files?
> AND/OR I'm also thinking that we may be able to launch image editor such
> that we can determine when image editor exited so we can prompt user if
> they want to save changed files or not? (Any suggestions on the way to
> launch exe so that we can determine when exe file has completed?)
>
>   
Hi Malcolm,

Why not have a button "check out" on the form where you display the 
image.  When they check it out store the user, date/time checked out and 
the temp path copied to (e.g. c:\tempimage).  You could optionally 
launch the image program at this point.  You could also have another 
button "check back in" which would copy back the new version and clear 
out the user and date/time checked out.  I would definitely go for 
storing the path rather than the file itself.
As for checking things back in on app shutdown, you don't know at this 
point if the changes are complete, so would leave this up to the user. 
Other things to consider are can anyone else book out the image (and if 
so whose changes take preference?).  You may also need another button to 
clear the check out (don't save changes)

Just a few ideas.

Peter




[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to