Application ExitCode

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

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


Date: Tue, 15 Jun 2004 11:55:23 -0700

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: Changing a users password non-interactively?
    ... You need expect and a setpass.expect script which ill add ... exit with a nasty warning. ... # Be careful of the COMMAND and UNDOCMD - they are dependant on your ...
    (comp.unix.aix)
  • Re: script does not always work the same each time.
    ... I have written a simple script to test code build and test run on a ... $lineterminationChar {append output $expect_out; ... exit 1;} ...
    (comp.lang.tcl)
  • Re: Form / subform focus problem
    ... control AfterUpdate event would seem more appropriate. ... A common way to show a total for details in a subform is to design the form ... > The Enter and Exit events compute a running total for the ... >>> Also, this form opens slowely. ...
    (microsoft.public.access.forms)
  • Re: need small PHP job done
    ... i need help tweaking a PHP mail script; ... // check for a recipient email address and check the validity of it ... // check for an attachment if there is a file upload it ...
    (alt.php)
  • Re: OSR505 Signal trapping in shell scripts
    ... >>My test script is at the end. ... > process only gets one SIGHUP per fd. ... > end up doing ioctls on fd 0, which is your stopio'd telnetd pty. ... > of the exit function. ...
    (comp.unix.sco.misc)