Re: Application ExitCode

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jeff (KepGuruNo_at_SpamYahoo.com)
Date: 06/16/04


Date: Wed, 16 Jun 2004 05:31:07 -0700

Thank you, I'll check it out.
Jeff

>-----Original Message-----
>Try this link: http://www.granite.ab.ca/access/autofe.htm
>
>Hope this helps,
>
>Peter De Baets
>Peter's Software - MS Access Tools for Developers
>http://www.peterssoftware.com
>
>"Jeff" <KepGuruNo@SpamYahoo.com> wrote in message
news:<1ccb201c4530a$503c3d40$a101280a@phx.gbl>...
>> My Question:
>> Is there anyway to specify an application ExitCode
>> overriding the one generated by a normal exit?
>>
>> Situation:
>> I've created a Windows Script that opens the MDB
>> application on the local machine and waits for it to
>> exit, storing the objects exitcode.
>> In my Access Application, the first action is to
compare
>> the local mdb, to the main one on the server. If the
>> local version is different, I exit Access, asking the
>> user to update to the newest version.
>>
>> I hope to pass back to the script someway means to
>> determine when to copy the new version of the MDB to
the
>> local machine. Since the script object WScript.Shell
RUN
>> gives me access to the objects EXITCODE it seems the
best
>> way to do it.
>>
>> Since Access closes without errors, the ExitCode is
>> always 0. I tried raising an error and exiting, but
the
>> clean exit wipes my error replacing it with a 0.
>>
>> I've been doing something like this with a "startup"
MDB,
>> that just tests the version, copies the new one if
>> needed, then opens the application. But this means
>> starting 2 copies of access every time they open the
>> application.
>>
>> Remove the No Spam to email me directly.
>> Thanks
>> Jeff
>.
>



Relevant Pages

  • Re: Application ExitCode
    ... > I've created a Windows Script that opens the MDB ... > application on the local machine and waits for it to ... > exit, storing the objects exitcode. ...
    (microsoft.public.access.modulesdaovba)
  • Application ExitCode
    ... Is there anyway to specify an application ExitCode ... I've created a Windows Script that opens the MDB ... exit, storing the objects exitcode. ...
    (microsoft.public.access.modulesdaovba)
  • Re: If you were inventing CoBOL...
    ... >Consider the effect of 'returning an exit status' to MS-DOS ... Private Declare Sub ExitProcess Lib "kernel32" (ByVal uExitCode As ... REM process here a null exit code ... If the process has not finished, the ExitCode property returns 0. ...
    (comp.lang.cobol)
  • Re: Can I run the DOS FC command from Rexx?
    ... Three Lefts wrote: ... if exitcode < 2 then 'list f:\diff' ...
    (comp.lang.rexx)
  • Re: Dealing with exit in a Modulino
    ... (when there is one, i.e. when I do not choose to exit), ... Some kind of exception mechanism. ... undef $exitcode; ... is($exitcode, undef, "didn't exit on startup); ...
    (comp.lang.perl.moderated)