无忧启动论坛

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

[原创] [更新(2022/11/11) ModernUI回归] explorer再见,WinXShell你好!

    [复制链接]
1#
发表于 2018-1-12 21:59:41 | 显示全部楼层
回复

使用道具 举报

2#
发表于 2022-10-31 23:52:19 | 显示全部楼层
请教大神:
      在WinXShell.lua中,
运行X:\\Windows\\System32\\Yong\\W64\\YONG.EXE用:
         exec('X:\\Windows\\System32\\Yong\\W64\\YONG.EXE')
如果要运行X:\\Windows\\System32\\CZ.BAT,应如何书写?
谢谢!

点评

cmd.exe /c xxxx.bat  详情 回复 发表于 2022-11-1 00:27
回复

使用道具 举报

3#
发表于 2022-11-1 19:10:09 | 显示全部楼层

谢谢!
      还有一个问题:
            exec('/hide', 'cmd.exe /c  X:\\Windows\\System32\\setup.bat')
      成功运行了批处理setup.bat,通过该批处理,安装了输入法,并运行了SH.EXE程序。而SH.EXE是用来加载
      外置工具到桌面的。每次进入PE后,需刷新桌面才能出现SH.EXE加载的外置工具的图标。如何才能进入PE
      后,自动刷新桌面?需在WinXShell.lua中加入怎样的语句?
             自己弄了好几次都没有成功。麻烦您详细指教一下。谢谢!

点评

sh.exe执行完毕后,批处理调用下winxshell.exe -code Desktop:Refresh()命令刷新桌面。  发表于 2022-11-2 09:11
回复

使用道具 举报

4#
发表于 2022-11-2 11:24:51 | 显示全部楼层

@ECHO OFF
setlocal enabledelayedexpansion
for %%i in (A B 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 (
if  exist  %%i:\tool\yong\w64\yong.exe  start %%i:\tool\yong\w64\yong.exe
if  exist  %%i:\tool\sh.exe  start %%i:\tool\sh.exe
)
start winxshell.exe -code Desktop:Refresh()
exit
是这样么?

点评

start /wait等待sh.exe加载完毕再刷新吧。 这样太快了,估计没有做完。  详情 回复 发表于 2022-11-2 12:22
回复

使用道具 举报

5#
发表于 2022-11-2 16:50:40 | 显示全部楼层
slore 发表于 2022-11-2 12:22
start /wait等待sh.exe加载完毕再刷新吧。
这样太快了,估计没有做完。

@ECHO OFF
setlocal enabledelayedexpansion
for %%i in (A B 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 (
if  exist  %%i:\tool\yong\w64\yong.exe  start %%i:\tool\yong\w64\yong.exe
if  exist  %%i:\tool\sh.exe  start %%i:\tool\sh.exe
)
choice  /t  60  /d  y /n >nul
start winxshell.exe -code Desktop:Refresh()

exit
这样也不行。
如何判断sh.exe加载完毕?

点评

启动sh.exe命令时,加等待参数就可以。 或者,判断sh.exe最后创建的快捷方式是否存在。 理论上,桌面是自动刷新的才对。 WinXShell创建桌面快捷方式都能实时显示,不用刷新。 你的PE不大的话,可以上传下。  详情 回复 发表于 2022-11-2 19:23
回复

使用道具 举报

6#
发表于 2022-11-2 20:45:23 | 显示全部楼层
本帖最后由 青青草 于 2022-11-2 21:06 编辑
slore 发表于 2022-11-2 19:23
启动sh.exe命令时,加等待参数就可以。
或者,判断sh.exe最后创建的快捷方式是否存在。

我是利用原版系统安装盘镜像Windows.iso,直接射入文件,动态构造pe的。
  1.     menuentry "[${sequence}] 启动 ${name} PE (${device})" "${device}" "${filename}"  --hotkey="${sequence}"{        
  2.                    set root="$2";
  3.                    set filename_this="$3"                                                           
  4.                    terminal_output console;
  5.                    loopback -d loop;
  6.                    loopback loop "${filename_this}";
  7.                    set lang=en_US;                                                                                                                     
  8.                    loopback wimboot ${prefix}/wimboot.xz;
  9.                    wimboot --index=2 \
  10.                           @:bootmgfw.efi:(wimboot)/bootmgfw.efi \
  11.                           @:explorer.exe:${prefix}/explorer.exe \
  12.                           @:WinXShell.exe:${prefix}/WinXShell.exe \
  13.                           @:WinXShell.jcfg:${prefix}/WinXShell.jcfg \
  14.                           @:winpeshl.ini:${prefix}/winpeshl.ini \
  15.                           @:findstr.exe:${prefix}/findstr.exe \
  16.                           @:imagex.exe:${prefix}/imagex.exe \
  17.                           @:oledlg.dll:${prefix}/oledlg.dll \
  18.                           @:WinXShell.lua:${prefix}/WinXShell.lua \
  19.                           @:setup.bat:${prefix}/setup.bat \
  20.                           @:boot.wim:(loop)/sources/boot.wim;                                    
  21.          }
复制代码
setup.bat的内容如下:
  1. @ECHO OFF
  2. setlocal enabledelayedexpansion
  3. for %%i in (A B 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. if  exist  %%i:\tool\yong\w64\yong.exe  start %%i:\tool\yong\w64\yong.exe
  5. if  exist  %%i:\tool\sh.exe  start %%i:\tool\sh.exe
  6. )
  7. choice  /t  60  /d  y /n >nul
  8. start winxshell.exe -code Desktop:Refresh()
  9. exit
复制代码
进入PE桌面后,sh.exe已启动在右下角(任务栏),需桌面右键刷新后,桌面上才会出现利用sh.exe加载的其它工具的图标。
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-5-22 13:08

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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