The world's first class ----- does not need to install WSH to perform VBS

zhaozj2021-02-16  48

The world's first class ----- does not need to install WSH to perform VBS

Author: Lee Kwan Yu 2002.12.23 EMAIL: E271828@163.NET

In order to create a shortcut with code, you can use the API, but this is too much. Is there a more convenient way? I found Shortcut under C: / Windows / Sample when browsing the Win98 system folder. VBS, this file really implements this feature. But this VBS must first install WSH to run, and more blame is that if you put it on the Super Sales 2000, then the VBS file and WSH are lost, resulting in VBS Unable to run. If you want to run VBS in the program, it will become a thing that is not so smooth. I found that I found less information about WSH. I used my previous development for this. "Shadow Catalog and Its Browser" to assist. I first use the "Shadow Directory and Its Browser" before I installed WSH, then install WSH, then use "shadow directory and its browser" To generate a B file, then compare the difference between the two files, find more than a few files distributed under different folders: Cscript.exe, Scrrun.dll, Wscript.exe, Wsh.inf, WShext .dll, wshom.ocx, wshtcp.vxd I put them COPY to the same "D: / reload system saves money !!! / Start menu and send it to / wsh /" folder. To this It also made a reg.bater as follows: @echo offc: /windows/system/regsvr32.exe / s d: / Reinstall system saving money saving !!! / Start menu and send to /WSH/WSHom.ocxc : /Windows/system/regsvr32.exe / s d: / Reinstall system saves money !!! / Start menu and send to /WSH/WShext.dllc:/Windows/system/regsvr32.exe / s D : / Reinstall the system saves money !!! / Start menu and send it to /WSH/Wshtcp.vxdc:/Windows/system/regsvr32.exe / s D: / Reinforcement system saves money! !! / Start menu and send to /WSH/Scrrun.dll before and after I installed WSH, I generated a reg file, named NO_WSH.REG and YES_WSH.REG, so I used a "registration" that I have developed from my previous The table analyzer "is to assist. I entered the" Registry Analyzer "twice before and after, and I found out that the following registration items, so I made it a Win98ok.reg file as follows: regedit4

[HKEY_LOCAL_MACHINE / Software / Microsoft / Windows / CurrentVersion / Setup / OptionalComponents / WSH] "Installed" = "1" [HKEY_LOCAL_MACHINE / Software / Microsoft / Windows / CurrentVersion / Shell Extensions / Approved] "{60254CA5-953B-11CF-8C96- 00AA00B8708C} "=" Windows Scripting Host shell extension "[HKEY_LOCAL_MACHINE / Software / Microsoft / Windows Scripting Host / Settings]" DisplayLogo "=" 1 "[HKEY_LOCAL_MACHINE / Software / CLASSES / CLSID / {EE09B103-97E0-11CF-978F- 00A02463E06F} / InprocServer32] @ = "C: //WINDOWS//SYSTEM//scrrun.dll" "ThreadingModel" = "Both" [HKEY_LOCAL_MACHINE / Software / CLASSES / CLSID / {EE09B103-97E0-11CF-978F-00A02463E06F} / Implemented Categories / {7DD95801-9882-11CF-9FA9-00AA006C42C4}] @ = "" [HKEY_LOCAL_MACHINE / Software / CLASSES / CLSID / {0D43FE01-F093-11CF-8940-00A0C9054228}] @ = "Filesystem object" [HKEY_LOCAL_MACHINE / Software /Classes/clsid/ (000D43FE01-F093-11CF-8940-00A0C9054228 }/inprocserver32]@="c://windows/system//scrrun.dll"[hKEY_LOCAL_MACHINE/Software/Classes/clsid/ (ff) 11D0-ADB9-00C04FD58A0B}] @ = "Windows Scripting Host Housing objects "[HKEY_LOCAL_MACHINE / Software / CLASSES / CLSID / {F935DC22-1CF0-11D0-ADB9-00C04FD58A0B} / InProcServer32] @ =" C: //WINDOWS//SYSTEM//wshom.ocx "[HKEY_LOCAL_MACHINE / Software / CLASSES / CLSID / {F935DC26-1CF0-11D0-ADB9-00C04FD58A0B}] @ = "Windows Scripting Host network objects" [HKEY_LOCAL_MACHINE / Software / CLASSES / CLSID / {F935DC26-1CF0-11D0-ADB9-00C04FD58A0B} / InProcServer32] @ = "C : //Windows//system//wshom.ocx "[HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / CLSID / {60254CA5-953B-11CF-8C96-00AA00B8708C}] @ =" Windows Scripting HOST Case Extension "

[HKEY_LOCAL_MACHINE / Software / CLASSES / CLSID / {60254CA5-953B-11CF-8C96-00AA00B8708C} / InProcServer32] @ = "C: //WINDOWS//SYSTEM//wshext.dll" [HKEY_LOCAL_MACHINE / Software / CLASSES / TypeLib / { F935DC20-1CF0-11D0-ADB9-00C04FD58A0B} /1.0] @ = "Microsoft Windows Scripting Host Object model (V1.0)" [HKEY_LOCAL_MACHINE / Software / CLASSES / TypeLib / {F935DC20-1CF0-11D0-ADB9-00C04FD58A0B} /1.0 / 0/win32]@="c://windows//system//wshom.ocx"[hKey_local_machine/software/classes/typelib/{ f935dc20-1cf0-11d0-adb9-00c04fd58a0b }/1.0/helpdir]@= " C: // windows // Help "[HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / TYPELIB / {420B2830-E718-11CF-893D-00A0C9054228} / 1.0/WIN32] @ =" c: // windows // system // scrun .dll "[HKEY_LOCAL_MACHINE / Software / CLASSES / TypeLib / {420B2830-E718-11CF-893D-00A0C9054228} /1.0/HELPDIR] @ =" C: // WINDOWS // SYSTEM "[HKEY_LOCAL_MACHINE / Software / CLASSES / WScript.Shell ] @ = "Windows Scripting Host shell objects" [HKEY_LOCAL_MACHINE / Software / CLASSES / WScript.Shell.1] @ = "Windows Scripting Host shell objects" [HKEY_LOCAL_MACHINE / Software / CLASSES / WScript.Shell.1 / CurVer] @ = "WSCR ipt.Shell.1 "[HKEY_LOCAL_MACHINE / Software / CLASSES / WScript.Network] @ =" Windows Scripting Host Network Objects "[HKEY_LOCAL_MACHINE / Software / CLASSES / WScript.Network.1] @ =" Windows Scripting Host Network Objects "[HKEY_LOCAL_MACHINE /Software/CLASSES/WScript.Network.1/CurVer]@="WScript.Network.1"[HKEY_LOCAL_MACHINE/Software/CLASSES/Scripting.FileSystemObject]@="Scripting.FileSystemObject"[HKEY_LOCAL_MACHINE/Software/CLASSES/.js] @ = "Jsfile" [HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / JSFILE] @ = "jscript script file"

[HKEY_LOCAL_MACHINE / Software / CLASSES / jsfile / DefaultIcon] @ = "C: //WINDOWS//WScript.exe,3" [HKEY_LOCAL_MACHINE / Software / CLASSES / jsfile / ScriptEngine] @ = "JScript" [HKEY_LOCAL_MACHINE / Software / CLASSES / JSFILE / Shell / Open] @ = "Open (& O)" [HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / JSFILE / SHELL / OPEN / COMMAND] @ = "c: //windows//wscript.exe /"% 1 / "% * "[HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / JSFILE / Shell / Open2] @ =" Open (& W) in MS-DOS "[HKEY_LOCAL_MACHINE / SOFTWARE / CLASSES / JSFILE / SHELL / OPEN2 / Command] @ =" C: // Windows //Command//cscript.exe / "% 1 /"% * "[HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / JSFILE / SHELL / EDIT] @ =" Edit (& E) "[HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / JSFILE / SHELL / EDIT /Command]@="c://windows/notepad.exe% 1 [HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / JSFILE / SHELL / PRINT] @ = "Print (& P)" [HKEY_LOCAL_MACHINE / SOFTWARE / CLASSES / JSFILE / SHELL /Print/command]@="c://windows/notepad.exe / p% 1 "[HKEY_LOCAL_MACHINE / SOFTWARE / CLASSES / JSFILE / SHELLEX / PropertySheetHandlers / WSHPROPS] @ =" {60254ca5-953b-11cf-8c96- 00aa00b8708c} "[hkey_local_machine / Software / Classes / .vbs] @ = "VBSFile" [HKEY_LOCAL_MACHINE / Software / CLASSES / vbsfile] @ = "VBScript Script File" [HKEY_LOCAL_MACHINE / Software / CLASSES / vbsfile / shell / open] @ = "Open (& O)" [HKEY_LOCAL_MACHINE / Software / CLASSES / vbsfile / shell / Open/command]@="c://Windows//wscript.exe / "% 1 /"% * "[HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / VBSFILE / SHELL / OPEN2] @ =" Open in MS-DOS prompts ( & W) [HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / VBSFILE / Shell / Open2 / Command] @ = "c: //windows//command//cscript.exe /"% 1 / "

% * "[HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / VBSFILE / SHELL / EDIT] @ =" Edit (& E) "[HKEY_LOCAL_MACHINE / SOFTWARE / CLASSES / VBSFILE / SHELL / EDIT / COMMAND] @ =" C: // Windows // Notepad .exe% 1 "[HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / VBSFILE / SHELL / Print] @ =" Print (& P) [HKEY_LOCAL_MACHINE / SHELL / CLASSES / VBSFILE / shell / Print / Command] @ = "C: // Windows / /NOTEPAD.EXE / P% 1 "[HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / VBSFILE / DEFAULTICON] @ =" c: //windows//wscript.exe, 2 "[hkey_local_machine / Software / class / vbsfile / scriptengine] @ =" VBScript "[HKEY_LOCAL_MACHINE / Software / CLASSES / vbsfile / ShellEx / PropertySheetHandlers / WSHProps] @ =" {60254CA5-953B-11CF-8C96-00AA00B8708C} "[HKEY_LOCAL_MACHINE / Software / CLASSES / .WSH] @ =" WSHFile "[HKEY_LOCAL_MACHINE / Software / classes / wshfile] @ = "Windows scripting host setting file" "isshortcut" = "yes" [hkey_local_machine / software / class / wshfile / defaulticon] @ = "c: //windows//wscript.exe, 1" [ HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / WSHFILE / Shell / Open] @ @ = "Open (& O)" [HKEY_LOCAL_MACHINE / SHELL / CLASS / WSHFILE / shell / open / command] @ = "c: // windows // wscript .exe / "% 1 /"% * "[HKEY_LOCAL_MACHINE / SOFTWARE / CLASS / WSHFILE / Shell / Open2] @ =" Take the MS-DOS Tip "[HKEY_LOCAL_MACHINE / SOFTWARE / CLASSES / WSHFILE / SHELL / OPEN2 / Command] @ = "c: //Windows//command//cscript.exe /"% 1 / "% *" [hkey_local_machine / softWare / class / wshfile / shellex / propertySheetHandlers / wshprops] @ = "{60254ca5-953b- 11CF-8C96-00AA00B8708C} "

[HKEY_USERS / .DEFAULT / Software / Microsoft / Windows / CurrentVersion / Explorer / Streams / 9] 00, 00 ,00, 00, 00, C8, 46,00, 00, 00, 00, 00, B6, 28, F7, BF, 07, 100, 100, 00, 77, 7E, / "ViewView2" = HEX: 1C, 00, 00, 04, 00, 00, 00, 00, 09, 00 , 00, 30, 100, 100, 100, 100, 01, / [HKEY_USERS / .DEFAULT / SOFTWARE / Microsoft / Windows / CurrentVersion / Explorer / StreamMRU] "mrulistex" = HEX:

09,00, 00, 00, 00, 00, 86, 00, 00, 4E, 00, 00, 00, 10, / 00, 00, 00, 64 00, 00, 100, B3, 100, 100, 67, 100, 100, C2, 100, 100, B1, 100, 100, 60, 100, / 00, 100, 12, 00, 0, 00, 00, 00, 200, 00, 00, 00, 00, 00, 00, 83, 00, 00, 00, 00, 83, 00, / 00, 37, 00 00, 00, 7D, 00, 00, 00, 00, 00, 62, 00, 00, 5B, 00, 00, 3, 7F, 00, 00, / 25, 00, 00, 00, 73, 100, 100, A5, 100, 100, B0, 100, 100, 3F, 00, 00, 79, 100, 00, 50, / 00, 00 00, B2, 00, 00, 00, 00, 57, 00, 00, 58, 00, 00, 00, 61, 00, //00, 00, 200, 00, 00, 00, 00, 40, 00, 00, 200, 00, 00, 00, 00, 200, 00, 00, 11, 00, 00, //00, / 00 26,00, 00, 00, 00, 00, 23, 00, 00, 24, 00, 00, 00, 00, 00, 00, 00, / 44,00, 00, 88, 00, 00, 97, 00, 00, 30, 00, 00, 13, 00, 00, 0C, 00, 00, 200, 27, / 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 07, 00, 00, 100, B9, 00 , / 00, 00, 00, 00, A4, 100, 00, 33, 100, 100, 35, 100, 100, 200, 200, 00, 00, / 00, 48, 00, 00, 38, 00, 3D, 00, 00, 49, 100, 100, 0, 00, 00, 00, 00, 00, 00 00, / B6, 100, 100, 3c, 00, 00, 3, 00, 00, 200, 00, 00, 59, 100, 100, 3B, 00, 00, 00, ba, / 00, 00, 2C, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 69, 6A, 00, 00, 69, 00, / 00, 68, 00, 00, 93, 00, 00, 200, 00, 00, 98, 00, 100, 100, 00, 100, 1C, 00, 00, 00, 0000 , / 00, BB, 00, 4C, 00, 00, 39, 100, 100, 02, 100, 100, 41, 100, 100, 00, 00, 00, 0D, 00, 00, 04, 00, 00, 01, 100, 00, C0, 100, 100, 00 , C7, / 00, 100, C5, 100, 100, AE, 00, 100, 100, 00, 100, 03, 100, 100, B4, 100, 100, 3E, 00, / 00, 100, B7, 100, 100, BE, 00, 00, C3, 100, 100, BC, 00, 100, B5, 100, 100, B8 00, 00, / 00, A9, 100, 100, 55, 100, 100, 36, 00, 100, 11, 100, 100, 54, 100, 100, 100, 66, 00, 00, / AC, 00, 00, 9E, 00, 00, 00, 00, 200, 00, 200, 00, 200, 87, 00, 00, 9D, 00 00, 00, 32, / 00, 00, C4, 100, 100, 8A, 00, 00, 17, 100, 100, 52, 100, 100, AB, 00, 00, 00, 45, 00, / 00, 00, 00, 100, 00, 7E, 00, 00, AD, 00, 00, 100, A2,

转载请注明原文地址:https://www.9cbs.com/read-24535.html

New Post(0)