autorun

kingsgambit

Registered User.
Local time
Today, 13:41
Joined
May 27, 2001
Messages
134
Can anybody tell me the code to open a access database.
I believe it is a shell statement.
I want to be able to save the vb project as a exe file.
So I can point the autorun file at the vb exe
file, which in turn will open my database.
This is so I can put a database on a cd and it will autorun, and open my database
 
Autoruns for CDs are fairly simple, making the program to run from it is where it gets tricky. I have played around with it a little bit with mixed results.

Here is the syntax for autorun:

[autorun]
OPEN=FolderName\FileName.exe
icon=autorun.ico

Just put that in the root of the CDRom you are installing your apps on. Be sure to save it as autorun.inf

[This message has been edited by BukHix (edited 11-06-2001).]
 
Shell(pathname[,windowstyle])

WindowStyle Constants:

vbHide - Window is hidden and focus is passed to the hidden window.

vbNormalFocus - Window has focus and is restored to its original size and position.
vbMinimizedFocus Window is displayed as an icon with focus.

vbMaximizedFocus - Window is maximized with focus.

vbNormalNoFocus - Window is restored to its most recent size and position. The currently active window remains active.

vbMinimizedNoFocus - Window is displayed as an icon. The currently active window remains active.
 

Users who are viewing this thread

Back
Top Bottom