Using @Command([Execute]

Hi there,

We have a dos based utility that runs off of DOS.

I am able to invoke the DOS window using the following:

@Command([Execute]; “cmd” ; “”)

However it gives the prompt as:

C:\Program Files\lotus\notes>

… I would like to point it to another directory where a program is located. Eg:

C:<folder>\abc

How could i achieve this?

Then, in the same window i would like to run a program as :

(program syntax) + (value taken from another field that program will run on) + press enter

I tried to look at various examples in Designer help (for Shell and Execute) as well postings in the forum but could not find any suitable answer - particularly on how to pass/merge the value of a field next to program command in the DOS window.

Any help would be much appreciated!

Ayaz

Subject: Using @Command([Execute]

You can easily do this in script with :

ExeDir="\Path\Folder"

Shell(ExeDir + "Progarm.exe -parm " + Parm1 + " -parm2 " + parm2 + " -parm3 " + parm3)

Jeremy

http://www.zetaone.com/jeremy/hodgebloge.nsf

Subject: RE: Using @Command([Execute]

Thanks Jeremy!

Pardon me for being a newbie …

What are Parm1, Parm2… in your example … and what is the minus sign befor some of them for?

Thanks again

Ayaz