Results 1 to 4 of 4

Thread: External links - console app - batch file - .bat - passing param

Threaded View

  1. #1
    Join Date
    Apr 2006
    Posts
    25

    Default External links - console app - batch file - .bat - passing param

    Hi,
    My title is constructed to be search friendly. The bottomline is that I am trying to link externally to the words.exe (Latin/English) which is a console app - that is on windows, it runs in a command shell (like a "DOS" window).

    Most BW users use this tool via a website- the entry in shellexec init file would like like this:

    [Latin lookup in WORDS]
    Operation = Open
    Directory = NULL
    File = http://lysy2.archives.nd.edu/cgi-bin/words.exe?<dummy>
    Parameters = NULL
    MenuLocation = Browse Window Latin
    TextType = Latin Text
    MapToVersion = NULL
    Lookup = Form
    MenuText = Latin lookup in WORDS
    Enabled = 1

    However, I do not have an internet connection at my home, so I have tried something like this to no avail:

    [Latin lookup in WORDS]
    Operation = Open
    Directory = c:words
    File = c:\words\words.exe
    Parameters = NULL
    MenuLocation = Browse Window Latin
    TextType = Latin Text
    MapToVersion = NULL
    Lookup = Form
    MenuText = Latin lookup in WORDS
    Enabled = 1

    The closest I can get to getting it to work is by specifying a batch file that spawns words.exe:

    [Latin lookup in WORDS]
    Operation = Open
    Directory = NULL
    File = c:\words\runwords.bat
    Parameters = NULL
    MenuLocation = Browse Window Latin
    TextType = Latin Text
    MapToVersion = NULL
    Lookup = Form
    MenuText = Latin lookup in WORDS
    Enabled = 1

    My batch file looks something like this:

    cd c:\words
    words.exe %1

    The %1 is the first argument sent to the batch file. It is not getting populated. I can explicitely pass an argument in the Parameters field, e.g.: Dominus. This works, but of course, I want the external links to pass the form of the Latin. I tried specifying <Form> both in the parameters field as well to no avail. At least I can cut and paste the Latin form into the console window, but it would be great if I could get this argument passed.

    Anyone know why this doesn't work?
    Has anyone successfully gotten the external links to spawn a console app in a command window?

    Thanks,
    Steve MacKenzie
    Bellevue, WA USA
    Last edited by Comet; 12-18-2007 at 03:16 PM.
    Steve MacKenzie
    Bellevue, WA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •