Originally posted by ChaseCox
Code:
@echo off cls cd\Program Files\Microsoft Office\OFFICE11 MSACCESS.EXE /compact C:\Test_Directory\Employees.mdb
@echo off cls cd\Program Files\Microsoft Office\OFFICE11 MSACCESS.EXE /compact C:\Test_Directory\Employees.mdb
@echo off cls cd\Program Files\Microsoft Office\OFFICE11 MSACCESS.EXE /compact C:\Test_Directory\Employees.mdb
Sub CompactSub() 'Define strPath and strFName and declare all variables Dim strPath, strFName As String strPath = "C:\Documents and Settings\laoxb\Desktop" strFName = "Test.vbs" RunIt strPath, strFName DeleteIt strFName DoEvents DBEngine.Idle Application.Quit End Function
Sub CompactSub() 'Define strPath and strFName and declare all variables Dim strPath, strFName As String strPath = "C:\Documents and Settings\laoxb\Desktop" strFName = "Test.vbs" RunIt strPath, strFName DeleteIt strFName DoEvents DBEngine.Idle Application.Quit End Function
Sub CompactSub() Dim strPath As String, StrFName As String strPath = "C:\Documents and Settings\denburt\Desktop" StrFName = "NewText.vbs" RunIt strPath, StrFName DoEvents DBEngine.Idle Application.Quit End Sub
Sub CompactSub() Dim strPath As String, StrFName As String strPath = "C:\Documents and Settings\denburt\Desktop" StrFName = "NewText.vbs" RunIt strPath, StrFName DoEvents DBEngine.Idle Application.Quit End Sub
@echo off cls "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" %1 /compact /repair "C:\Documents and Settings\laoxb\Desktop\FalconAnalysis.mdb"
Comment