Michael,
Funny as it sounds I was able to run it with the entire line enclosed in
quotes from the command line, that was what was throwing me off.
But I see below, you offer me the exact line that does work. Thank you
again for all your help.
Aaron
-----Original Message-----
From: Podlin, Michael [mailto:
michael.podlin@...]
Sent: Monday, May 17, 2004 8:04 AM
To: '
vantage@yahoogroups.com'
Subject: RE: [Vantage] Re: Progress Procedure
You need the space in between the program and the option:
DOS SILENT '"C:\Program Files\EuroPlus\NiceNet\Bin\nicenet.exe"
V:\mfgsys61\USERFORM\reellbl.job'.
The double quotes around the program itself are used to tell windows and
the
space between Program and Files is actually part of the path. The best
way
to test these things are with the windows RUN from the start button. If
the
command line will run from this, it will run from the DOS SILENT.
-----Original Message-----
From: Aaron Hoyt [mailto:
hoyt@...]
Sent: Monday, May 17, 2004 6:51 AM
To:
vantage@yahoogroups.com
Subject: RE: [Vantage] Re: Progress Procedure
Lonnie, Michael,
Ok, I am still at a loss here. I have watched and tried each version of
the statements. Now that you both agree on a standard, I still can't
get it to work.
I can get it to open a program, but when I try to pass the option, it
won't do anything, not open the program nor give any error. What I am
trying to run is this.
"C:\Program Files\EuroPlus\NiceNet\Bin\nicenet.exe
V:\mfgsys61\USERFORM\reellbl.job"
I have tried:
OS-COMMAND NO-WAIT VALUE ('"C:\Program
Files\EuroPlus\NiceNet\Bin\nicenet.exe"
"V:\mfgsys61\USERFORM\reellbl.job"').
DOS SILENT '"C:\Program Files\EuroPlus\NiceNet\Bin\nicenet.exe"
"V:\mfgsys61\USERFORM\reellbl.job"'.
DOS SILENT '"C:\Program Files\EuroPlus\NiceNet\Bin\nicenet.exe"'
'"V:\mfgsys61\USERFORM\reellbl.job"'.
DOS SILENT '"C:\Program Files\EuroPlus\NiceNet\Bin\nicenet.exe
V:\mfgsys61\USERFORM\reellbl.job"'.
DOS SILENT '"C:\Program Files\EuroPlus\NiceNet\Bin\nicenet.exe"' +
'"V:\mfgsys61\USERFORM\reellbl.job"'.
DOS SILENT "C:\Program Files\EuroPlus\NiceNet\Bin\nicenet.exe
V:\mfgsys61\USERFORM\reellbl.job".
The frustrating part is from the command line (XP cmd or Start Run):
"C:\Program Files\EuroPlus\NiceNet\Bin\nicenet.exe
V:\mfgsys61\USERFORM\reellbl.job"
Works just fine.
Any ideas? This is so close I can taste it, but I just can't get it to
start from within my .p.
I will be trying to pass a variable to it next, but I don't hold out
much hope.
Thank you for any additional thoughts.
Aaron Hoyt
Hittite Microwave
-----Original Message-----
From: Lonnie Drew [mailto:
lonniedrew@...]
Sent: Friday, May 14, 2004 3:26 PM
To:
vantage@yahoogroups.com
Subject: [Vantage] Re: Progress Procedure
Very good. Seems encapsuling the string "c:\program files\windows
NT\accessories\wordpad.exe" in single quotes was necessary because of
the spaces.
I tried....
DEF VAR p AS CHARACTER INITIAL '"c:\program files\windows
NT\accessories\wordpad.exe"'.
DOS SILENT VALUE (p).
... and it worked.
On a side note....
OS-COMMAND NO-WAIT VALUE('"c:\program files\windows
nt\accessories\wordpad.exe"')
...worked also, as long as the single quotes are there.
--- In
vantage@yahoogroups.com, "Podlin, Michael"
<michael.podlin@v...> wrote:
> DOS SILENT works the same as using the Windows Run Command window
from your
> start button. If you can run a program that way you can use it
with the DOS
> SILENT.
>
> ASSIGN shell-line = "F:\vsi-exe\VSI-Traveler.exe /J=" +
> fil-JobNo:SCREEN-VALUE + " /A=" + STRING(TravelerAssemblyNo)
+ " /O=" +
> STRING(TravelerOperationNo) + " /T=" + SESSION:TEMP-DIRECTORY.
> DOS SILENT VALUE (shell-line).
>
> I know it works cause I've been using this format for years. Here
is a
> direct cut/paste from a routine to generate our Visual Basic
traveler. Not
> only am I launching the program but I'm passing 4 variable to it to
in the
> command line.
>
> If you are receiving a "not a recognized command or program", my
guess is
> it's not typed correctly. If you use the 8.3 file name format, you
need to
> make sure its correct (and these sometimes change from workstation
to
> workstation). I prefer to use the long filename method and assign
it to a
> variable and then use the DOS SILENT VALUE(variable) format. As
expected,
> the spaces in the command line, windows requires them to be in
quotes.
> Changing the initial value to make the value contain the quotes
(see below)
> will pass the correct value to the command line. (I always try not
to put
> spaces in my directory structure, they are such a pain to deal with)
>
> DEF VAR p AS CHARACTER INITIAL '"c:\program files\windows
> NT\accessories\wordpad.exe"'.
> DOS SILENT VALUE (p).
>
>
> -----Original Message-----
> From: Lonnie Drew [mailto:lonniedrew@c...]
> Sent: Friday, May 14, 2004 1:13 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Re: Progress Procedure
>
>
> Oops, I meant to say.......
>
>
> > I tried the first suggestion...
> >
> > DEF VAR p AS CHARACTER INITIAL "c:\program files\windows
> > NT\accessories\wordpad.exe".
> > DOS SILENT VALUE (p).
> >
> > ... and still received the DOS error.
> >
> > The second suggestion...
> >
> > DOS SILENT "c:\progra~1\window~1\access~1\wordpad.exe"
> >
> > ... still yielded a DOS error message "not a recognized command
or
> > program" ...................?????
> >
> >
> > What do you think Michael?
> >
> >
> > --- In vantage@yahoogroups.com, "Podlin, Michael"
> > <michael.podlin@v...> wrote:
> > > DEF VAR p AS CHARACTER INITIAL "c:\program files\windows
> > > NT\accessories\wordpad.exe".
> > > DOS SILENT VALUE (p).
> > >
> > > or
> > >
> > > DOS SILENT "c:\progra~1\window~1\access~1\wordpad.exe"
> > >
> > > yes it is that simple.
> > >
> > > -----Original Message-----
> > > From: Lonnie Drew [mailto:lonniedrew@c...]
> > > Sent: Friday, May 14, 2004 12:46 PM
> > > To: vantage@yahoogroups.com
> > > Subject: [Vantage] Re: Progress Procedure
> > >
> > >
> > > It really depends on what program you're calling. For example,
I
> > > tried running "c:\program files\windows
> NT\accessories\wordpad.exe"
> > > with the DOS statement, and error message ...
> > > " 'c:\program' is not a DOS command"
> > > ..appeared.
> > >
> > > Not so simple is it.
> > >
> > > ShellExecuteA also provides more flexibility.
> > >
> > > --- In vantage@yahoogroups.com, "Podlin, Michael"
> > > <michael.podlin@v...> wrote:
> > > > DOS SILENT program name.
> > > >
> > > > can't get much simpler.
> > > >
> > > > -----Original Message-----
> > > > From: Aaron Hoyt [mailto:hoyt@h...]
> > > > Sent: Friday, May 14, 2004 12:09 PM
> > > > To: vantage@yahoogroups.com
> > > > Subject: [Vantage] Progress Procedure
> > > >
> > > >
> > > > Looking to the Progress geniuses out there in Vantage land.
I
> am
> > > trying
> > > > to call a windows program from a .p procedure that I have
> written
> > in
> > > > relation to a Business Activity Query. I am trying to use
> > Epicor's
> > > > lib\ShellExec.r program to call the windows program.
> > > > First, does someone know of an easier way to do this?
> > > > Second, if not, does anyone know the correct parameter to
pass
> to
> > > this
> > > > .r to get the call to work?
> > > > Any input is appreciated.
> > > >
> > > > Aaron Hoyt
> > > > Hittite Microwave Corporation
> > >
> > >
> > >
> > >
> > > Useful links for the Yahoo!Groups Vantage Board are: ( Note:
You
> > must have
> > > already linked your email address to a yahoo id to enable
> access. )
> > > (1) To access the Files Section of our Yahoo!Group for Report
> > Builder and
> > > Crystal Reports and other 'goodies', please goto:
> > > http://groups.yahoo.com/group/vantage/files/.
> > > (2) To search through old msg's goto:
> > > http://groups.yahoo.com/group/vantage/messages
> > > (3) To view links to Vendors that provide Vantage services goto:
> > > http://groups.yahoo.com/group/vantage/links
> > > Yahoo! Groups Links
>
>
>
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You
must have
> already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report
Builder and
> Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
> http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/links
> Yahoo! Groups Links
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder
and Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Yahoo! Groups Sponsor
ADVERTISEMENT
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/vantage/
To unsubscribe from this group, send an email to:
vantage-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder
and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Yahoo! Groups Links
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder
and Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
Yahoo! Groups Sponsor
ADVERTISEMENT
<
http://rd.yahoo.com/SIG=1293jnhea/M=295196.4901138.6071305.3001176/D=gr
oups/S=1705007183:HM/EXP=1084881935/A=2128215/R=0/SIG=10se96mf6/*http://
companion.yahoo.com> click here
<
http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=group
s/S=:HM/A=2128215/rand=468890440>
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/vantage/
* To unsubscribe from this group, send an email to:
vantage-unsubscribe@yahoogroups.com
<mailto:
vantage-unsubscribe@yahoogroups.com?subject=Unsubscribe>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <
http://docs.yahoo.com/info/terms/> .
[Non-text portions of this message have been removed]