473,416 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

/repair from a .bat file - access 97

I am running this command from a .bat file.

"C:\pathToAccess\MSACCESS.EXE" "C:\pathToDatabase\db.mdb" /REPAIR

Database repairs as expected, then shows the messge:

"Successfully repaired the ..." and you have to click "Ok" to get rid
of the message so that the database can close.

How does one suppress this message, so that the database shuts down
automatically?

I thought this switch was supposed to repair, then shutdown the
database without user intervention.

Any help is greatly appreciated! Thanks in advance!

Jun 25 '06 #1
11 4919
Somewhat interestingly and funny, is that all the searching that I've
done about this specific question always amounted to the same scenario.

There was never an answer. People more commonly replied with a "why do
you want to do that anyway", which is hilarious.

If it is impossible to SUPRESS the informative pop-up message after
running a command-line "/repair" switch with Access 97, why not just
state that?

Even more funny is that "/repair" from the cli is described by
Microsoft as a command that is supposed to automatically close access
after completion.

I don't care about the philosophical war between "/repair" and
"/compact", or the historical developments of said commands.

I simply want to know if there is a way to FORCE the /repair switch to
function as the documentation states it should.

That's all. Thanks!

ri*****@gmail.com wrote:
I am running this command from a .bat file.

"C:\pathToAccess\MSACCESS.EXE" "C:\pathToDatabase\db.mdb" /REPAIR

Database repairs as expected, then shows the messge:

"Successfully repaired the ..." and you have to click "Ok" to get rid
of the message so that the database can close.

How does one suppress this message, so that the database shuts down
automatically?

I thought this switch was supposed to repair, then shutdown the
database without user intervention.

Any help is greatly appreciated! Thanks in advance!


Jun 25 '06 #2
On 25 Jun 2006 01:00:49 -0700, "ri*****@gmail.com" <ri*****@gmail.com>
wrote:

That's indeed annoying. Here is a work around that worked for me. Note
that in JetComp (and later versions of Access) there is no distinction
between repair and compact.
rem Not ideal because of 'success' messagebox "c:\program
files\microsoft office97\office\msaccess.exe" "c:\program
files\microsoft office97\office\samples\northwind.mdb" /repair
rem Next requires installation of JetComp from
http://support.microsoft.com/?kbid=295334
"c:\program files\microsoft office2000\jetcomp.exe" -src:"c:\program
files\microsoft office97\office\samples\northwind.mdb"
-dest:"c:\program files\microsoft
office97\office\samples\northwind2.mdb"
rem Todo: Delete the old file, and rename the new one.

-Tom.
I am running this command from a .bat file.

"C:\pathToAccess\MSACCESS.EXE" "C:\pathToDatabase\db.mdb" /REPAIR

Database repairs as expected, then shows the messge:

"Successfully repaired the ..." and you have to click "Ok" to get rid
of the message so that the database can close.

How does one suppress this message, so that the database shuts down
automatically?

I thought this switch was supposed to repair, then shutdown the
database without user intervention.

Any help is greatly appreciated! Thanks in advance!


Jun 25 '06 #3
What a great and simple solution!

By chance is there a full list of syntax/switches/options for
jetcomp.exe?

Going to put this into a batch file I can invoke with AT.

Tom van Stiphout wrote:
On 25 Jun 2006 01:00:49 -0700, "ri*****@gmail.com" <ri*****@gmail.com>
wrote:

That's indeed annoying. Here is a work around that worked for me. Note
that in JetComp (and later versions of Access) there is no distinction
between repair and compact.
rem Not ideal because of 'success' messagebox "c:\program
files\microsoft office97\office\msaccess.exe" "c:\program
files\microsoft office97\office\samples\northwind.mdb" /repair
rem Next requires installation of JetComp from
http://support.microsoft.com/?kbid=295334
"c:\program files\microsoft office2000\jetcomp.exe" -src:"c:\program
files\microsoft office97\office\samples\northwind.mdb"
-dest:"c:\program files\microsoft
office97\office\samples\northwind2.mdb"
rem Todo: Delete the old file, and rename the new one.

-Tom.
I am running this command from a .bat file.

"C:\pathToAccess\MSACCESS.EXE" "C:\pathToDatabase\db.mdb" /REPAIR

Database repairs as expected, then shows the messge:

"Successfully repaired the ..." and you have to click "Ok" to get rid
of the message so that the database can close.

How does one suppress this message, so that the database shuts down
automatically?

I thought this switch was supposed to repair, then shutdown the
database without user intervention.

Any help is greatly appreciated! Thanks in advance!


Jun 25 '06 #4
Ahh, nevermind, I found that doing a jetcom -? produces all the
information. As you can see I'm not from the Win world.

Thanks again though, this is great!

ri*****@gmail.com wrote:
What a great and simple solution!

By chance is there a full list of syntax/switches/options for
jetcomp.exe?

Going to put this into a batch file I can invoke with AT.

Tom van Stiphout wrote:
On 25 Jun 2006 01:00:49 -0700, "ri*****@gmail.com" <ri*****@gmail.com>
wrote:

That's indeed annoying. Here is a work around that worked for me. Note
that in JetComp (and later versions of Access) there is no distinction
between repair and compact.
rem Not ideal because of 'success' messagebox "c:\program
files\microsoft office97\office\msaccess.exe" "c:\program
files\microsoft office97\office\samples\northwind.mdb" /repair
rem Next requires installation of JetComp from
http://support.microsoft.com/?kbid=295334
"c:\program files\microsoft office2000\jetcomp.exe" -src:"c:\program
files\microsoft office97\office\samples\northwind.mdb"
-dest:"c:\program files\microsoft
office97\office\samples\northwind2.mdb"
rem Todo: Delete the old file, and rename the new one.

-Tom.
I am running this command from a .bat file.

"C:\pathToAccess\MSACCESS.EXE" "C:\pathToDatabase\db.mdb" /REPAIR

Database repairs as expected, then shows the messge:

"Successfully repaired the ..." and you have to click "Ok" to get rid
of the message so that the database can close.

How does one suppress this message, so that the database shuts down
automatically?

I thought this switch was supposed to repair, then shutdown the
database without user intervention.

Any help is greatly appreciated! Thanks in advance!


Jun 25 '06 #5
ri*****@gmail.com wrote:
I don't care about the philosophical war between "/repair" and
"/compact", or the historical developments of said commands.
Often, when one writes:

"Any help is greatly appreciated! Thanks in advance! "

one gets discussions of how and why things happen as they do.
I simply want to know if there is a way to FORCE the /repair switch to
function as the documentation states it should.


I guess we got confused about what

"How does one suppress this message, so that the database shuts down
automatically?
I thought this switch was supposed to repair, then shutdown the
database without user intervention."

means:

I guess when one posts to a public newsgroup where the emphasis of its
regulars is the investigation and sharing of knowledge about a
technical subject, and especially when one asks about an obsolete
version of the subject of the newsgroup, which most of us can no longer
test, one may not get what "I simply want".

Access has paid technical support. It's not as good as CDMA, of course,
but it may be more suitable for the "I simply want" part of your soul.

Jun 25 '06 #6
Lyle,
I had a question. I did a search. I noticed a pattern. Since that
pattern revealed this particular question being outright avoided, I
framed my request accordingly.

Guess what. At least one other shared my concern, and frustration. I
got a beautifully well focused answer, that I'm using and loving as we
speak.

One last thing. I did not choose obsolescence in this particular
project. It choose me. One needs to eat. I am equally *nix and
windowed as far as my projects go, and this one just happened to
involve old technology. I don't mind at all.

Don't confuse a well focused, intensely framed question for anything
else. It was simply that. A question.

And yes. Thanks again!

Lyle Fairfield wrote:
ri*****@gmail.com wrote:
I don't care about the philosophical war between "/repair" and
"/compact", or the historical developments of said commands.


Often, when one writes:

"Any help is greatly appreciated! Thanks in advance! "

one gets discussions of how and why things happen as they do.
I simply want to know if there is a way to FORCE the /repair switch to
function as the documentation states it should.


I guess we got confused about what

"How does one suppress this message, so that the database shuts down
automatically?
I thought this switch was supposed to repair, then shutdown the
database without user intervention."

means:

I guess when one posts to a public newsgroup where the emphasis of its
regulars is the investigation and sharing of knowledge about a
technical subject, and especially when one asks about an obsolete
version of the subject of the newsgroup, which most of us can no longer
test, one may not get what "I simply want".

Access has paid technical support. It's not as good as CDMA, of course,
but it may be more suitable for the "I simply want" part of your soul.


Jun 25 '06 #7
I got a nice chuckle reading that!
Verily, my soul is speaking to you through googlegroups!

Lyle Fairfield wrote:
but it may be more suitable for the "I simply want" part of your soul.


Jun 25 '06 #8
Hi.
I don't care about the philosophical war between "/repair" and
"/compact", or the historical developments of said commands.
You should care with Access 97, because it doesn't have the safety feature
built in like the Jet 4.0 versions do, where the repair will be done if and
only if it needs to be done. Trying to repair an Access 97 database that
doesn't need to be repaired may result in a corrupted file that is
unrecoverable.

If Access 97 needs to be repaired, you will be prompted to do so.
Otherwise, if it's acting rather bizarrely, then you need to repair it. You
don't need to guess whether or not an Access 97 database file should be
repaired. Please see the following Web page for more information:

http://groups.google.com/group/comp....a501bdde2cae88

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
info.
<ri*****@gmail.com> wrote in message
news:11**********************@c74g2000cwc.googlegr oups.com... Somewhat interestingly and funny, is that all the searching that I've
done about this specific question always amounted to the same scenario.

There was never an answer. People more commonly replied with a "why do
you want to do that anyway", which is hilarious.

If it is impossible to SUPRESS the informative pop-up message after
running a command-line "/repair" switch with Access 97, why not just
state that?

Even more funny is that "/repair" from the cli is described by
Microsoft as a command that is supposed to automatically close access
after completion.

I don't care about the philosophical war between "/repair" and
"/compact", or the historical developments of said commands.

I simply want to know if there is a way to FORCE the /repair switch to
function as the documentation states it should.

That's all. Thanks!

ri*****@gmail.com wrote:
I am running this command from a .bat file.

"C:\pathToAccess\MSACCESS.EXE" "C:\pathToDatabase\db.mdb" /REPAIR

Database repairs as expected, then shows the messge:

"Successfully repaired the ..." and you have to click "Ok" to get rid
of the message so that the database can close.

How does one suppress this message, so that the database shuts down
automatically?

I thought this switch was supposed to repair, then shutdown the
database without user intervention.

Any help is greatly appreciated! Thanks in advance!

Jun 25 '06 #9
"ri*****@gmail.com" <ri*****@gmail.com> wrote in
news:11**********************@i40g2000cwc.googlegr oups.com:
I am running this command from a .bat file.

"C:\pathToAccess\MSACCESS.EXE" "C:\pathToDatabase\db.mdb" /REPAIR

Database repairs as expected, then shows the messge:

"Successfully repaired the ..." and you have to click "Ok" to get
rid of the message so that the database can close.

How does one suppress this message, so that the database shuts
down automatically?

I thought this switch was supposed to repair, then shutdown the
database without user intervention.


What version of Jet are you doing this with? If it's Jet 4 or Jet
3.51, then you shouldn't be doing a repair by itself, anyway. Repair
by itself can damage an otherwise usable database beyond repair.
This is why with Jet 3.51 and the Access 97 SR1, compact was changed
to do a repair *if needed* before the compact, and the REPAIR
command by itself was severely deprecated.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jun 26 '06 #10
"Lyle Fairfield" <ly***********@aim.com> wrote in
news:11**********************@c74g2000cwc.googlegr oups.com:
I guess when one posts to a public newsgroup where the emphasis of
its regulars is the investigation and sharing of knowledge about a
technical subject, and especially when one asks about an obsolete
version of the subject of the newsgroup, which most of us can no
longer test, one may not get what "I simply want".


Access 97 is not "obsolete" by any reasonable definition, Lyle. It
is just not the latest version.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jun 26 '06 #11
"ri*****@gmail.com" <ri*****@gmail.com> wrote in
news:11**********************@c74g2000cwc.googlegr oups.com:
I don't care about the philosophical war between "/repair" and
"/compact", or the historical developments of said commands.
Microsoft cared enough about it to make REPAIR a part of the COMPACT
process when necessary, and severely deprecating any use of REPAIR
by itself. If you want to disregard Microsoft, then so be it, but
you're then embarking on nonsupported solutions.

So far as I can see, there's is no "philosophical war" between the
two. Microsoft made very clear than from Jet 3.51 and Access 97 SR1
that you should *never* use repair by itself because that could
damage your database beyond recovery.
I simply want to know if there is a way to FORCE the /repair
switch to function as the documentation states it should.


Who cares about something you shouldn't be doing in the first place?

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jun 26 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: David B | last post by:
Have a user reporting some problems with my app on WinXP home edition + O97 Talking him through a few things on the phone I tried Tools > Database Utilities > Repair Database He got a message...
3
by: Paolo | last post by:
Hi, I am trying to compact and repair my database, however every time I try it comes up a message saying: Table: "TempMSysAccessObject already exists", whenever I try to look for this table I...
4
by: Ken Winters | last post by:
Whenever I run the Repair/Compact on my database, the security settings on the file change. A 3rd party application can only access the database over the network when the username "Everyone" is...
14
by: Lauren Wilson | last post by:
Well, it has finally happened. We have a five year old app that is widely distributed. I cannot get an update done because none of the code modules will open. Access complains that the module...
5
by: SheldonMopes | last post by:
Here is my situation:I have several Access database projects that all keep their back-end data in a directory on a server. I would like to have a small Access application that could open each .mdb...
2
by: ray | last post by:
I have a client that doesn't want Access to automatically repair into a backup file if it crashes (and it crashes only on very rare occasions). My (sketchy) understanding is that this is a...
2
by: Ron | last post by:
Hi All, Using WinXP pro/Access 2000. I have a database that's been used for about 5 months. Transferred lots of data from a dos based program, then the users have been using it for that 5...
9
by: Ron | last post by:
New discovery. If I take a perfectly good database, and "compact/repair" on it with Access 2000 (seems to be at multiple sites--I've tried it with my system here, at another office on an...
4
by: zufie | last post by:
When I Repair/Compact my Access databse. I get icons/copies of a database named db1.mdb, db2.mdb, db3.mdb, etc... How else may I repair this database? Thanks!, Zuf
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.