here is the code that will handle it. dont want to bother Tomasz
with such a small change.
Option Explicit
Dim ABPath,args,num,oAB
set args = WScript.Arguments
num = args.Count
if num = 0 then
WScript.Echo "Usage: [CScript | WScript] LoadAB.vbs drivespace.vbs
<path>"
WScript.Quit 1
end if
Set oAB = CreateObject("Broker.Application")
oAB.loadDatabase(args(0))
oAB.visible=1
--- In [email protected], "J. Biran" <[EMAIL PROTECTED]> wrote:
>
>
> Make this a suggestion at http://www.amibroker.com/feedback/
>
>
> Joseph Biran
> ____________________________________________
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf
> Of murthysuresh
> Sent: Monday, September 17, 2007 3:50 PM
> To: [email protected]
> Subject: [amibroker] launch broker.exe thro commandline
>
> Hello
> Is there any options to launch broker.exe thro commandline and pass
the
> name of the database to launch. i have 3 different versions of the
db
> that i use for different purposes. I want to have a short cut to
use to
> launch them. every time, i open ab, it opens the default db and
then i
> have to change it depending on which databse i want to use.
> is there a better way- 1 click approach that will solve this issue.
>
> seede
>