--- In [email protected], "Sheri" <sheri...@...> wrote:
>
> --- In [email protected], "Wai" <chunwaihome@> wrote:
> >
> > --- In [email protected], "brucexs" <bswitzer@> wrote:
> > >
> > > --- In [email protected], "Wai" <chunwaihome@> wrote:
> >
> >
I have tested a litle, it work wonderful.thx
It is worthy adding this function to file plugin.
>
> local clipcontent=clip.get
> clip.clear
> local appprocess=win.handle("under").getprocessid
> local wmicmd= ;;+
> ?"/c wmic /output:clipboard process "++appprocess++" GET commandline"
> file.runwait(0, env("COMSPEC"), wmicmd, "", "hide")
> local commandline=regex.pcrereplace(?"^CommandLine\x20+",clip.get,"")
> clip.set(clipcontent)
> win.debug(commandline)
>
> Regards,
> Sheri
>