Basically, I'm trying to launch an executable that takes two command-line arguments, but the executable is in one location, and I need it to run with the current directory (or "Start In" directory) pointing to a different location. The first command-line argument never changes, the second is passed through from the user/FARR.
In concrete terms, it's a Java Phone Book app that takes a command-line argument (the name or number of the person to lookup). So it launches like this:
pathA\javaw.exe arg1 arg2
Where arg1 is the name of my app and arg2 is the Name/PhoneNumber I'm searching for. Trying to follow the 'wiki' and 'maps' examples, I've got the "Results" section of the "Edit Group Alias" dailog set as shown, but with 2 problems:
C:\Program Files\Java\j2sdk1.4.2_01\bin\javaw MyApp $$1
First problem is setting the directory it actually runs from. Any ideas? (and if you know Java, it's not enough to just add to the classpath. The app actually uses the directory it's launched from). I've tried making a batch file, but I'd rather not open a cmd window and then the Java GUI, too. I've also made a .lnk shortcut that launches ok, but I can't figure out how to get arg2 passed in from the command line.
Second problem is me not understanding the $$1 parameter. I have this Alias named "phone". As I start typing it into FARR, everything starts as expected and I see "phone" up at the top of the list coming from myaliases.alias. All good until I get to the "e" in phone. Right then, the drop-down list changes to a smaller font and maybe 20 results instead of 9. By the time I've typed "phone mike", the list has filtered down to no entries and won't launch anything (much less launch my app with "mike" as an arg).
Thanks for any help, and apologies for my density.