Home > Back-end >  How to set up Windows ShellExecuteEx calls ubuntu
How to set up Windows ShellExecuteEx calls ubuntu

Time:04-15

SHELLEXECUTEINFO ShExecInfo;
ShExecInfo. CbSize=sizeof (SHELLEXECUTEINFO);
ShExecInfo. FMask=SEE_MASK_NOCLOSEPROCESS;
ShExecInfo. HWND=NULL;
ShExecInfo. LpVerb=NULL;
ShExecInfo. LpFile=char2wchar (" ubuntu. Exe ");
ShExecInfo. LpParameters=char2wchar ("./test. Sh ");
ShExecInfo. LpDirectory=char2wchar (" ");
ShExecInfo. NShow=SW_SHOW;
ShExecInfo. HInstApp=NULL;
Bool b_ret=ShellExecuteEx (& amp; ShExecInfo);

The lpParameters how to set up to make ubuntu running script
  • Related