Microsoft Knowledge Base Email Alertz

KBAlertz.com: (302891) - In Microsoft Access (and other Microsoft Office applications), you can use the Shell command in Visual Basic for Applications (VBA) code to start another application. Although you can start most applications in this manner, the Shell command does not...

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 302891 - Last Review: March 28, 2007 - Revision: 5.1

How to start MSBackup.exe from Microsoft Access

This article was previously published under Q302891
Moderate: Requires basic macro, coding, and interoperability skills.

This article applies to either a Microsoft Access database (.mdb) file or to a Microsoft Access database (.accdb) file, and to a Microsoft Access project (.adp) file.

For a Microsoft Access 2000 version of this article, see 302502  (http://kbalertz.com/Feedback.aspx?kbNumber=302502/ ) .
For a Microsoft Access 97 version of this article, see 302881  (http://kbalertz.com/Feedback.aspx?kbNumber=302881/ ) .

SUMMARY

In Microsoft Access (and other Microsoft Office applications), you can use the Shell command in Visual Basic for Applications (VBA) code to start another application. Although you can start most applications in this manner, the Shell command does not support all applications. MSBackup.exe is one of these applications.

MORE INFORMATION

By using the Shell command, you can start an MS-DOS batch file that, in turn, calls MSBackup.exe.

NOTE: MSBackup.exe is only available on the Windows 98 and the Windows Millennium operating systems. You may need to install Microsoft Backup from your CD if MSBackup.exe is not located in your \Program Files\Accessories\Backup folder.

For additional information about Microsoft Backup, please see Windows 98 or Windows Millennium Help and review the following articles in the Microsoft Knowledge Base:
264541  (http://kbalertz.com/Feedback.aspx?kbNumber=264541/ ) Microsoft Backup Tool Is Not Installed by Windows Millennium Edition
182624  (http://kbalertz.com/Feedback.aspx?kbNumber=182624/ ) Microsoft Backup System Requirements for Windows 98

To create the MS-DOS batch file that calls MSBackup.exe:

  1. Start Notepad.
  2. Type the following commands, but substitute your path and file information for where MSBackup.exe is located on your computer:
       CD \ 
       CD \"Program Files\Accessories\Backup"
       MSBackup.exe
    					
  3. Save the text file in the root directory of drive C with the name LaunchMSBackup.bat.
  4. Create a command button on a form, and then create the following code for the Click event of the command button:
    x = Shell("C:\LaunchMSBackup.bat")
  5. Click the command button to run the .bat file, and then close the MS-DOS window that is used by the Shell command.

APPLIES TO
  • Microsoft Office Access 2007
  • Microsoft Office Access 2003
  • Microsoft Access 2002 Standard Edition, when used with:
    • Microsoft Windows 98 Standard Edition
    • Microsoft Windows 98 Second Edition
    • Microsoft Windows Millennium Edition
Keywords: 
kbvba kbhowto KB302891
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please