Microsoft KB Archive/302881

= ACC97: How to Start MSBackup.exe from Microsoft Access =

Article ID: 302881

Article Last Modified on 1/31/2007

-

APPLIES TO

 Microsoft Access 97 Standard Edition, when used with:  Microsoft Windows 95

 Microsoft Windows 98 Standard Edition

 Microsoft Windows 98 Second Edition

 Microsoft Windows Millennium Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q302881

<div class="notice_section">

For a Microsoft Access 2000 version of this article, see 302502.

For a Microsoft Access 2002 version of this article, see 302891.

Moderate: Requires basic macro, coding, and interoperability skills.

This article applies only to a Microsoft Access database (.mdb).

<div class="summary_section">

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, there are some applications that the Shell command does not support. MSBackup.exe is one of these applications.

<div class="moreinformation_section">

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 available only on the Windows 95, Windows 98, and Windows Millennium operating systems. You may have to install Microsoft Backup from your CD if MSBackup.exe is not located on your computer.

To start MSBackup.exe from Access, follow these steps: <ol> Click Start, point to Programs, point to Accessories, and then click Notepad.</li>  Type or paste the following text into Notepad, but substitute your own path and file information: CD\ CD \&quot;Program Files&quot; CD \&quot;Program Files\Accessories\Backup&quot; MSbackup.exe </li> Save the text file in the root directory of drive C, and name it LaunchMSBackup.bat .</li> Add a command button to a form</li> Right-click the command button, and then click Build Event.</li> In the Choose Builder dialog box, click Code Builder, and then click OK.</li>  Type or paste the following command in the module: Shell C:\LaunchMSBackup.bat </li> Click the command button to run the .bat file, and then close the MD-DOS window that is used by the Shell command.</li></ol>

Additional query words: MSBackup.exe backup shell Launch inf

Keywords: kbhowto KB302881

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.