> On 5 24 , 5 15 , Mark Janssen <mpc.jans
@gmail.com> wrote:
> > On May 24, 5:26 am, x@163.com wrote:
> > > > Dear all:
> > > > I have create a tcl file to run a program wpa_supplicant.exe.
> > > sorry, the command in DOS command window is:
> > > > c:\katexie\wpa_supplicant.exe -i{2165EB16-49D0-A553-
> > > > C0E6E25330D1} -copen.conf -d- Hide quoted text -
> > >
> > You are having two problems:
> > 1) The backslaches in the executable name are substituted by Tcl to:
> > c:katexiewpa_supplicant.exe which indeed cannot be found.
> > 2) -cmdline of create_process (probably) requires a single argument.
> > Try this instead:
> > twapi:: create_process {c:\katexie\wpa_supplicant.exe} -cmdline {-
> > i{2165EB16-49D0-A553-C0E6E25330D1} -cmdline -copen.conf -d}
> > Mark
> > Mark
> thank you, Mark.
> I have tried the modified command,
> twapi::create_process {c:\katexie\wpa_supplicant.exe} -cmdline {-
> i{2165EB16-49D0-A553-C0E6E25330D1} -copen.conf -d}
> this time, the program can be found.
> but the TCL think the argment is not correct. why?
> thanks.- Hide quoted text -
>
First of all, when reporting back issues, it is very useful to include instead. If the PROGRAM argument is {} the -cmdline parameter will be
used instead.