Use shell.Application technology

zhaozj2021-02-16  43

Function filesearch () {search = new activXObject ("Searchassistantoc.searchassistock); Searchasst.FindFilesorfolders ();

// shellapp = new activXObject ("shell.application"); //shellapp.showbrowserbar ("{C4EE31F3-4768-11D2-BE5C-00A0C9A83DA1}", true); // is the same as the upper effect}

Function personSearch () {searchasst = new activXObject ("Searchassistantoc.searchassistantoc"); Searchasst.FindPeople ();

Function shellexecuteexe () {shellapp = new activXObject ("shell.application");

// var myprinterfolder = shell.namespace ("shell: printersfolder"); // var mydocsfolder = shell.namespace ("shell: personal"); // var mycompfolder = shell.namespace ("shell: drivefolder");

//Shellapp.showbrowserbar ("" {C4EE31F3-4768-11D2-BE5C-00A0C9A83DA1} ", TRUE);

Shellapp.SHELLEXECUTE ("cmd.exe");

//Shellapp.shellexecute ("wiaacmgr.exe" "); //shellapp.shellexecute (" Rundll32.exe "," shell32.dll, control_rundll sysdm.cpl, 1 ") //shellapp.shellexecute ( "Rundll32.exe", "shell32.dll, control_rundll netcpl.cpl, 1"); //shellapp.shellexecute ("Rundll32.exe", "shell32.dll, control_rundll sysdm.cpl, 1");

// For the FolderItems object, you can use InvokeverBex method //shellapp.namespace ("c,"); //, by invokeverb (x.Items (). Item (0). ) .Verbs (). Item (i) .name); You can access a command // win = shellapp.namespace ("c: // xxx") .Items (). Item (0) // E = Win. Verbs (); // for (i = 0; i

/ / = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ // // bindtosa /// bind to the specified url and return the cdo object for It. // Function Bindtosa (Szurl) {var admoderead = 1; var = new activIvexObject ("cdo.knowledgedgestaddress) odoc.datasource.Open (Szurl, Null, AdmodeRead, -1, 0,", "") Return odoc;

/ / = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ = ~ // // bindtourL // / bind to the specified url and return the cdo object for It. // function bindtourl (szurl) {var admoderead = 1; var = new activiXObject ("cdo.knowledgedocument") odoc.datasource.Open (Szurl, Null, AdmodeRead, -1, 0, "," ") Return odoc;

Function MSG (STR) {//