--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote:
>
> > LCmd = do(if(validpath _file_,"win.debug(_file_)"))
> >
> > It produced the error message:
> >
> > ---------------------------
> > Error running command (2): File not found
> > do(if(validpath _file_,"win.debug(_file_)"))
> > ---------------------------
> >
> > BTW,
> >
>
> I tried cutting and pasting your examples but theyall your examples
> worked fine for me. Does it depend on the selected file for the first
> one or the condition of the if statement for the mci examples.
Sorry, I wasn't clear enough. The above command produced an error only
as Cmd of PP's ContextMenu (and possibly, Scheduler). If I executed a
similar command in a script, then worked fine:
_file_ = pprofolder
do(if(validpath _file_,"win.debug(_file_)"))
> Or maybe you can find a simpler command that fails?
In MCI() case, the error message was not about the whole command, but
only about the command inside the quotes.
do(if(1, ?'mci("set cdaudio door open")'))
always produced an error message in my WXPSP2.
I haven't tried with empty.pcf yet.
Sean