It looked to me that both of Dan's suggestions worked.
However, I like the parentheses idea as I'm already explicitly
putting in the double quotes.

On 4/18/07, Oleg Kobchenko <[EMAIL PROTECTED]> wrote:

What syntax I found working is using parentheses

   shell '("C:\amisc\sound\music\Fifties & Sixties\renLen.bat")'

where relative path can also be used.

Also read cmd /? it explains why "&" spoils the fun for quotes cmd /c.


--- Dan Bron <[EMAIL PROTECTED]> wrote:

> Devon,
>
> This isn't a bug in shell, it's a "feature" of  cmd.exe  (backwards
compatibility).   See  cmd
> /help  .
>
> You have a couple of options.  Use the syntax:
>
>          shell '"C:\amisc\sound\music\Fifties" & "Sixties\renLen.bat"'
>       pshaw

I don't believe this syntax will work.

> or use  spawn  directly instead of shell:
>
>          '' spawn '"C:\amisc\sound\music\Fifties & Sixties\renLen.bat"'
>       pshaw
>
> Oleg:
>
> You might want to consider using both the lpApplicatioName and
lpCommandLine parameters in the
> definition of CreateProcess.

How will it help?


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm




--
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to