Compact/Repair password protected backend

Local time
Today, 03:39
Joined
Aug 3, 2005
Messages
66
Hello,

I am using the following Module and Code and it works well:

http://www.access-programmers.co.uk/forums/showthread.php?t=228573


The only problem is that the backend is password protected.
So everytime I call...

Call CompactBE

...it prompts for the password.

I can ofcourse just remove the password from the backend but was hoping that I can "hardcode?" the password somewhere in the code.

Any help is appreciated.

Thanks,
Jamie.
 
If you don't need a log file, try this:
Code:
DBEngine.CompactDatabase [I]PathAndNameOfSourceFile[/I], [I]PathAndNameOfDestinationFile[/I], , , ";pwd=[I]YourPassword[/I]"
 
If you don't need a log file, try this:
Code:
DBEngine.CompactDatabase [I]PathAndNameOfSourceFile[/I], [I]PathAndNameOfDestinationFile[/I], , , ";pwd=[I]YourPassword[/I]"

I don't mind the log file, and your solution seems to work fine. Thank you.
I will test it for a while and post back if there are any problems.

Thanks again.
 
If you don't need a log file, try this:
Code:
DBEngine.CompactDatabase [I]PathAndNameOfSourceFile[/I], [I]PathAndNameOfDestinationFile[/I], , , ";pwd=[I]YourPassword[/I]"


work!
Easy, simple, e best solution I found. Thank you!
 

Users who are viewing this thread

Back
Top Bottom