> Hi Oliver,
> Are you talking about the Location: field in the General tab? If
> yes, yes, it is properly set.
No, Oliver was not talking about the Location field on the General tab.
That's the directory that contains the file. What you care about is the
"current working directory" when the command runs.
There isn't an easy way to set this. You could do it by creating a
shortcut to the .cmd file, and then setting the property on that.
Better yet, you could specify the full path to the .jar file so that
you're not dependent on the current directory. I'm not familiar enough
with Windows batch scripting to tell you how to do that, but it can't be
too hard... right?

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
zero - 09 Dec 2005 13:53 GMT
Chris Smith <cdsmith@twu.net> wrote in news:MPG.1e02b89aa9eced75989c19
@news.altopia.net:
>> Hi Oliver,
>> Are you talking about the Location: field in the General tab? If
[quoted text clipped - 11 lines]
> with Windows batch scripting to tell you how to do that, but it can't be
> too hard... right?
It isn't, but there's a better way. If I understand the OP correctly, the
.cmd file is an unnecessary step. Just create a new shortcut with target
"java -jar TractorMapper.jar -Druntime.environment=TEST" Then right click
the new shortcut, and set the starting directory (in the shortcut tab) to
C:\sample

Signature
Beware the False Authority Syndrome
Oliver Wong - 09 Dec 2005 15:43 GMT
> Chris Smith <cdsmith@twu.net> wrote in news:MPG.1e02b89aa9eced75989c19
> @news.altopia.net:
[quoted text clipped - 20 lines]
> the new shortcut, and set the starting directory (in the shortcut tab) to
> C:\sample
Yes, sorry, I thought the OP was working with shortcuts, not Windows
Shell scripts.
The fields I see on the "shortcut" pane when viewing the properties of a
shortcut on Windows XP are:
Target:
Start In:
Shortcut key:
Run:
Comment:
"Target" should contain the command you wish to run and "Start in"
should contain the directory where you want the command to run.
- Oliver