|
本帖最后由 sairen139 于 2024-4-4 12:39 编辑
关于rndis功能让手机和pe传送交流文件的pecmd.ini里pe开机共享X盘出去为X的具体命令
EXEC @net share X=X: /grant:everyone,full
另外共享pe别的分区和文件夹的注册表添加右键菜单方法如下:
:: 右键菜单共享
[HKEY_CLASSES_ROOT\Directory\shell\Net_ShareFolder_Once]
"Icon"="ShareFolder.ico"
[HKEY_CLASSES_ROOT\Directory\shell\Net_ShareFolder_Once\command]
@="Pecmd.exe TEAM EXEC @net share ShareFolder /del /y|EXEC @net share ShareFolder=%1 /grant:everyone,full|EXEC @icacls %1 /grant everyone:(oi)(ci)(F) /t"
[HKEY_CLASSES_ROOT\Drive\shell\Net_ShareDisk_Once]
"Icon"="ShareDisk.ico"
[HKEY_CLASSES_ROOT\Drive\shell\Net_ShareDisk_Once\command]
@="Pecmd.exe TEAM EXEC @net share ShareDisk /del /y|EXEC @net share ShareDisk=%1 /grant:everyone,full|EXEC @icacls %1 /grant everyone:(oi)(ci)(F) /t"
|
-
IMG_6774.png
(867.65 KB, 下载次数: 99)
EXEC @net share X=X: /grant:everyone,full添加到最后一行即可共享X盘出去为X
|