无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 25262|回复: 76
打印 上一主题 下一主题

[分享] 【2016.3.22 补充应用实例】Sh.exe 新版功能探讨和应用【附全系列更新系统下载】

    [复制链接]
1#
发表于 2016-3-1 15:53:07 | 显示全部楼层
本帖最后由 2012doberman 于 2016-3-1 16:01 编辑

You can put the program itself: Sh.exe (Sh_x64.exe) + Sh.ini (Sh_x64.ini) in the folder Programs, and specify the search in Pecmd.exe-Sh.exe (Sh_x64.exe).

Then there is the need to integrate the Sh.exe "wim. boot"!


     REGI #HKLM\SYSTEM\CurrentControlSet\Control\Windows\ErrorMode=2
     CALC #TEnvi=6
     LOOP %TEnvi%>0,
     {
     FORX \W10PE\Programs\Sh.exe,XEnvi,1,TEAM EXEC --hide %XEnvi%|EXIT LOOP
     TEAM CALC TEnvi=%TEnvi%-1|WAIT 1000
     FIND #%TEnvi%=5,EXEC --hide bootpart.exe -mount -driveletter U:
     FIND #%TEnvi%=2,EXEC --hide ShowDrive.exe ALL
     }
     REGI #HKLM\SYSTEM\CurrentControlSet\Control\Windows\ErrorMode=0

点评

请教大侠:Sh.exe + Sh.ini 放在外置程序目录内, 如果PE中没有 Pecmd.exe ,该如何处理?可不可以通过注册表来解决?如果可以,又该怎样解决?  详情 回复 发表于 2016-5-13 23:53
请教大侠:Sh.exe + Sh.ini 放在外置程序目录内, 如果PE中没有 Pecmd.exe ,该如何处理?可不可以通过注册表来解决?如果可以,又该怎样解决?  详情 回复 发表于 2016-5-13 23:53
doberman 的开始部分理解为:Sh.exe + Sh.ini 放在外置程序目录内, 用 Pecmd.exe 搜索和运行 Sh.exe ,就是说,Sh.exe 并不一定要放在 Windows 系统目录内。这个观点没有错,只要 Sh.exe + Sh.ini 放在一个目录内,  详情 回复 发表于 2016-3-1 16:44
回复

使用道具 举报

2#
发表于 2016-5-14 16:58:10 | 显示全部楼层
Put Sh.exe (Sh.ini) into the directory with the programs, for example:
PE10\Programs

At the end of pecmd.ini   -   add Sh.cmd run:

  1. @echo off
  2. set n=\PE10\Programs\Sh.exe
  3. for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
  4. for /F "tokens=*"  %%i in (' vol %%a: ') do (
  5. if exist %%a:%n% start %%a:%n%
  6. if exist %%a:%n% exit
  7. )
  8. )
  9. exit
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-6-14 04:25

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表