找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
楼主: mdyblog

[更新376#2825]PECMD2012.1.80.13_Win32_64.多窗口多线程.裸机系统2.3.3.1+18M酷M...

   火... [复制链接]
 楼主| 发表于 2015-7-30 10:28:32 | 显示全部楼层
fukystone 发表于 2015-7-30 10:15
还有,我在pecmd.ini的主程序中设定一次变量轮次就可以了吧?
就是ENVI^   EnviMode=1
没必要在每个sub ...

1:
还有,我在pecmd.ini的主程序中设定一次变量轮次就可以了吧?
就是ENVI^   EnviMode=1
没必要在每个sub中都设定,是不是?
--------------
开始设依次就可以了, 后面都适用。


2:
主程序中先TEAM ENVI W=%WINDIR%|ENVI WS=%W%\SYSTEM32
后面都有效。
和 ENVI^   EnviMode=1 无关。
和 是否 _SUB无关

3:
ENVI^   EnviMode=1
是 环境变量解释设为 标准模式: 1)指解释1次 2) %%换成%  3)顺序解释  4)未定义解释为空
  1. ENVI  ABCi=123
  2. ENVI  NM=ABC
  3. MESS  【%%NM%i%】
复制代码

显示 【123】

  1. ENVI^   EnviMode=1
  2. ENVI  ABCi=123
  3. ENVI  NM=ABC
  4. MESS  【%%NM%i%】
复制代码

显示 【%NM】

回复

使用道具 举报

 楼主| 发表于 2015-7-30 10:34:00 | 显示全部楼层
fukystone 发表于 2015-7-30 10:04
1、不好意思,确实应该是%%l,老版是有2个百分号的,修改的这个在虚拟机中拖来拖去,不知怎么变1个了,我 ...

你试试
REGI $HKLM\SOFTWARE\Classes\7-ZIP.cab\shell\安装驱动\command\\=PECMD MESS. 【TEAM DEVI $%%L,,%%TEMP%%|TEMP @Delete】【%%TEMP%%】【%TEMP%】@DEBUG
看看输出什么
看看  【%%TEMP%%】与【%TEMP%】是否一样。

点评

见图,不一样的,%%temp%%被解释成temp了。 这个我觉得不必改了,只要在使用系统变量的时候不要加双百分号就好了。  详情 回复 发表于 2015-7-30 11:36
回复

使用道具 举报

发表于 2015-7-30 11:36:33 | 显示全部楼层
mdyblog 发表于 2015-7-30 10:34
你试试
REGI $HKLM\SOFTWARE\Classes\7-ZIP.cab\shell\安装驱动\command\\=PECMD MESS. 【TEAM DEVI $%% ...

见图,不一样的,%%temp%%被解释成temp了。
这个我觉得不必改了,只要在使用系统变量的时候不要加双百分号就好了。
搜狗截图_2015-07-30_11-33-21.png

点评

下载最新版 PECMD TEXT可多进程多线程操作  详情 回复 发表于 2015-7-30 16:21
windows的原因。 在交给 PECMD的时候 %TEMP%已经变成TEMP,也就是%丢弃了。 REG_SZ 不支持环境变量。 支持环境变量 需要 REG_EXPAND_SZ 类型。 测试正确. 你的代码可为:  详情 回复 发表于 2015-7-30 15:13
回复

使用道具 举报

发表于 2015-7-30 14:00:44 | 显示全部楼层
本帖最后由 freesoft00 于 2015-7-30 14:08 编辑
527104427 发表于 2015-7-29 11:17
文件要在扩展区,而且不能压缩。


ImDisk Virtual Disk Driver 2.0.1
ImDisk Virtual Disk Driver beta 2.0.0.
◦Rewritten I/O request logic to allow fully parallel I/O. This is by default only used when communicating with AWEAlloc driver for physical memory virtual disks, but can be turned on for any virtual disks backed by an image file or another kernel level driver, provided that the underlying driver supports it. Use -o par command line option to turn on this feature. This change should give better physical RAM disk performance. It should also give better performance for instance when using ImDisk to mount offsets of \\?\PhysicalDrive objects as virtual disks.
◦AWEAlloc driver rewritten to support multiple requests simultaneously, which means that ImDisk no longer need to queue requests and switch to a worker thread to complete requests to a physical memory RAM disk.
◦Support for TRIM requests sent from filesystem drivers on Windows 7 and later. Forwarded as either file level TRIM requests to image file or in case image file is a sparse file, as "zero data" requests. TRIM requests can optionally also be forwarded to proxy applications if proxy application supports it. This should make it easier to develop proxy services that support freeing parts of a virtual disks that are no longer in use.
◦Bugfix: Fixed problem which caused sparse files to sometimes be created as fully allocated files.
◦Bugfix: Impossible to specify a device number when calling ImDiskCreateDeviceEx. Automatic device number was always used.


Minor update 21 May 2015
•w32ver.exe and w32verc.exe updated to display correct version number even on Windows 8.1 and later.
•New features and updated help text added to devioctl.exe.

Update 29 July 2015
•ImDisk Virtual Disk Driver 2.0.1. Finalized version of earlier beta, with these additions/changes.◦Fixed issue with using directories as mount point.
◦Separate "zero range" and "unmap range" requests sent to proxy, when proxy indicates support for such requests.

点评

有下载吗?在哪儿? 我试试。  详情 回复 发表于 2015-7-30 14:33
回复

使用道具 举报

 楼主| 发表于 2015-7-30 14:33:18 | 显示全部楼层
freesoft00 发表于 2015-7-30 14:00
ImDisk Virtual Disk Driver 2.0.1

有下载吗?在哪儿? 我试试。

点评

官方的下载地址是固定的; http://www.ltr-data.se/files/imdiskinst.exe 新 版本一直是这个地址  详情 回复 发表于 2015-7-30 14:38
回复

使用道具 举报

发表于 2015-7-30 14:38:18 | 显示全部楼层
mdyblog 发表于 2015-7-30 14:33
有下载吗?在哪儿? 我试试。


官方的下载地址是固定的;
http://www.ltr-data.se/files/imdiskinst.exe
http://www.ltr-data.se/files/imdisk_source.7z
新 版本一直是这个地址
回复

使用道具 举报

 楼主| 发表于 2015-7-30 15:13:37 | 显示全部楼层
fukystone 发表于 2015-7-30 11:36
见图,不一样的,%%temp%%被解释成temp了。
这个我觉得不必改了,只要在使用系统变量的时候不要加双百分 ...

windows的原因。
在交给 PECMD的时候 %TEMP%已经变成TEMP,也就是%丢弃了。

REG_SZ 不支持环境变量。


支持环境变量 需要 REG_EXPAND_SZ 类型。
  1. REGI ~HKLM\SOFTWARE\Classes\7-ZIP.cab\shell\安装驱动\command\\=PECMD MESS. 【TEAM DEVI $%%L,,%%TEMP%%|TEMP @Delete】【%%TEMP%%】【%TEMP%】@DEBUG
复制代码
测试正确.


你的代码可为:
  1. REGI ~HKLM\SOFTWARE\Classes\7-ZIP.cab\shell\安装驱动\command\\=PECMD  TEAM DEVI $%%L,,%%TEMP%%|TEMP @Delete
复制代码






回复

使用道具 举报

 楼主| 发表于 2015-7-30 16:21:25 | 显示全部楼层
fukystone 发表于 2015-7-30 11:36
见图,不一样的,%%temp%%被解释成temp了。
这个我觉得不必改了,只要在使用系统变量的时候不要加双百分 ...

下载最新版 PECMD
TEXT可多进程多线程操作

点评

试了一下,这回好多了,不重叠了  详情 回复 发表于 2015-7-30 21:56
回复

使用道具 举报

发表于 2015-7-30 17:16:28 | 显示全部楼层
527104427 发表于 2015-7-30 17:13
汉化好了,见楼上

速度的很,谢谢!
回复

使用道具 举报

 楼主| 发表于 2015-7-30 20:20:23 | 显示全部楼层
527104427 发表于 2015-7-30 17:13
汉化好了,见楼上

IMDISK 怎么编译。 谁成功过?
安装WDK总是失败。
回复

使用道具 举报

发表于 2015-7-30 21:56:30 | 显示全部楼层
mdyblog 发表于 2015-7-30 16:21
下载最新版 PECMD
TEXT可多进程多线程操作

试了一下,这回好多了,不重叠了
回复

使用道具 举报

 楼主| 发表于 2015-7-30 22:12:23 | 显示全部楼层
527104427 发表于 2015-7-30 22:05
没试过,估计得安装 cygwin 。不会玩

默认 是用VS2012、2013编译的。
VS 编译驱动的组件 WDK,没装上。

点评

Short step-by-step how-to for building ImDisk from source. 1.Download ImDisk source code: http://ltr-data.se/files/imdisk_source.7z and extract it to a local directory. 2.Download and install Window  详情 回复 发表于 2015-7-31 11:29
回复

使用道具 举报

发表于 2015-7-31 11:29:55 | 显示全部楼层
mdyblog 发表于 2015-7-30 22:12
默认 是用VS2012、2013编译的。
VS 编译驱动的组件 WDK,没装上。


Short step-by-step how-to for building ImDisk from source.
1.Download ImDisk source code: http://ltr-data.se/files/imdisk_source.7z and extract it to a local directory.
2.Download and install Windows Driver Kit 7.1.0. https://www.microsoft.com/en-us/download/details.aspx?id=11800
3.Setup will create some shortcuts for various machine architecture/OS version combinations in a folder on your start menu. Open the one that is relevant for you.
4.Change to the directory where you extracted ImDisk source files.
5.Type nmake in this directory if you would like to build all components. Otherwise, if you want to build the driver only for instance, change to sys subdirectory and type build there.
作者的回复
回复

使用道具 举报

 楼主| 发表于 2015-7-31 14:07:00 | 显示全部楼层
527104427 发表于 2015-7-31 11:59
终于成功了,真棒!!

这么快!
回复

使用道具 举报

 楼主| 发表于 2015-7-31 14:55:03 | 显示全部楼层
本帖最后由 mdyblog 于 2015-7-31 15:36 编辑
527104427 发表于 2015-7-31 11:59
终于成功了,真棒!!


XP 下 安装WDS7失败。


我是全钩上了。


WIN7x64  成功了。  (x86-cpl也是不能编译,可能是缺个小工具)
回复

使用道具 举报

 楼主| 发表于 2015-7-31 15:32:25 | 显示全部楼层
527104427 发表于 2015-7-31 12:08
X64 和 IA64 都能编译成功,唯独 X86 的 CPL 编译不成功,不知道什么原因:


win7X64 编译 sys后, 安装不上, 提示没有签名!!
这个不知道怎么处理!

未命名截图.png
回复

使用道具 举报

 楼主| 发表于 2015-7-31 15:37:08 | 显示全部楼层
本帖最后由 mdyblog 于 2015-7-31 15:38 编辑
527104427 发表于 2015-7-31 15:35
奇怪,看来还有暗桩啊!


是 MS 的原因。和IMDisk无关。需要申请一个 证书, WINDOWS才认这个SYS是认证的。

点评

证书作者才有,需要付费的,咱们个人编译的肯定是没有数字签名的,所以64位上使用就是这个情况了。  详情 回复 发表于 2015-7-31 15:58
回复

使用道具 举报

发表于 2015-7-31 15:58:50 | 显示全部楼层
mdyblog 发表于 2015-7-31 15:37
是 MS 的原因。和IMDisk无关。需要申请一个 证书, WINDOWS才认这个SYS是认证的。

证书作者才有,需要付费的,咱们个人编译的肯定是没有数字签名的,所以64位上使用就是这个情况了。
回复

使用道具 举报

发表于 2015-7-31 17:11:16 | 显示全部楼层
527104427 发表于 2015-7-31 12:08
X64 和 IA64 都能编译成功,唯独 X86 的 CPL 编译不成功,不知道什么原因:

Ah, yes sorry! This is caused by an attempt to make the build configuration compatible with Windows 2000. You could edit the "sources" files and remove the line _NT_TARGET_VERSION=0x0500 (or comment out with a # first on that line).



You can also download and extract imdisk_source.7z again, I have changed the sources files there now.
作者更新了源代码,请从新下载源代码可以再次试试看是否可以编译通过。

点评

请向作者返回反馈下, sys\imdisk.c 改成 就可以支持: 一个磁盘可以同时可写挂载多个分区[/backcolor]。在XP上已测试通过(win7没有证书,没测)  详情 回复 发表于 2015-8-1 09:05
回复

使用道具 举报

 楼主| 发表于 2015-8-1 07:45:26 | 显示全部楼层
527104427 发表于 2015-7-31 21:56
可以编译了。多谢!!

兄弟帮忙向作者反馈个问题呗,如图所示:

改成0x501,
编译运行,没问题。
00050.png
回复

使用道具 举报

 楼主| 发表于 2015-8-1 09:05:25 | 显示全部楼层
本帖最后由 mdyblog 于 2015-8-1 09:09 编辑
freesoft00 发表于 2015-7-31 17:11
Ah, yes sorry! This is caused by an attempt to make the build configuration compatible with Window ...


请向作者返回反馈下,
sys\imdisk.c

                        if (IMDISK_READONLY(CreateData->Flags) ||
                                (IMDISK_TYPE(CreateData->Flags) == IMDISK_TYPE_VM))
                                share_access |= FILE_SHARE_WRITE;


改成
                        //if (IMDISK_READONLY(CreateData->Flags) ||
                        //        (IMDISK_TYPE(CreateData->Flags) == IMDISK_TYPE_VM))

                                share_access |= FILE_SHARE_WRITE;


就可以支持: 一个磁盘可以同时可写挂载多个分区。在XP上已测试通过(win7没有证书,没测)


imdisk  -a  -f \\.\PhysicalDrive0 -b 13216K -s 2048000K -o par -m Z:
imdisk  -a  -f \\.\PhysicalDrive0 -b 2061216K -s 2048000K -o par -m Y:

00051.png

修改后的sys\imdisk.c: sys-imdisk.zip (38.5 KB, 下载次数: 11)
编译后的imdisk.sys (X86): imdiskx86.sys.zip (19.24 KB, 下载次数: 5)
回复

使用道具 举报

 楼主| 发表于 2015-8-1 14:34:51 | 显示全部楼层
本帖最后由 mdyblog 于 2015-8-2 12:10 编辑
527104427 发表于 2015-8-1 11:54
编译是可以了,但不能点保存,一点就崩溃了


修正后的源码:
cpl.imdisk.src.zip (15.15 KB, 下载次数: 7)
效果:
00052.png
回复

使用道具 举报

 楼主| 发表于 2015-8-1 21:05:02 | 显示全部楼层
527104427 发表于 2015-8-1 11:54
编译是可以了,但不能点保存,一点就崩溃了

imdisk.sys  在win7X64上终于测试通过了。

开机是F8, 选择禁用数字签名, 就能用了。(每次手动。多种“设置后一直有效的方法”都无效)
-wk-ffd75d51f0bf7874dfdda363b5fd5e99-0.png

效果:

未命名截图3.png
回复

使用道具 举报

发表于 2015-8-1 22:21:18 | 显示全部楼层
527104427 发表于 2015-7-31 21:56
可以编译了。多谢!!

兄弟帮忙向作者反馈个问题呗,如图所示:

反馈了,等作者回复
回复

使用道具 举报

发表于 2015-8-1 23:07:39 | 显示全部楼层
M大,请问2015.07.05 V1.88.08.69版本是不是不用安装imdisk就能挂载隐藏分区了吗?

点评

是的。 如果是自己的PE, 强烈建议 还是装一个, 这样 PE启动能快个2秒(否则首次挂载等待2秒左右)。  详情 回复 发表于 2015-8-2 02:44
回复

使用道具 举报

发表于 2015-8-2 02:09:59 | 显示全部楼层
I have found the reason why that problem happens when you try to save as image file. I will correct that and publish a new version soon. Thanks for finding it!



Anyway, I like your idea to solve the problem where you want to mount several virtual devices out of one single image file or physical drive. I can definitely include that in the official version too. I will do this in a little bit different way though. You will need to use a special option with the -o switch for this to work. Otherwise, if the driver always open in shared write mode, one could accidentally mount the same image file as different writable virtual disks and that way corrupt the filesystem on it. With a command line option, it will at least be the user's choice to take this risk or to know that correct parameters are used so that virtual devices do not overlap.

作者的回复,具体我也不太清楚

点评

这莫说作者接受了。 那就等1天,在更新pecmd/MbrosTool  详情 回复 发表于 2015-8-2 03:31
回复

使用道具 举报

 楼主| 发表于 2015-8-2 02:44:21 | 显示全部楼层
chxm1023 发表于 2015-8-1 23:07
M大,请问2015.07.05 V1.88.08.69版本是不是不用安装imdisk就能挂载隐藏分区了吗?

是的。

如果是自己的PE, 强烈建议 还是装一个, 这样 PE启动能快个2秒(否则首次挂载等待2秒左右)。
回复

使用道具 举报

 楼主| 发表于 2015-8-2 03:28:38 | 显示全部楼层
527104427 发表于 2015-8-1 11:54
编译是可以了,但不能点保存,一点就崩溃了


这是一个可以汉化的 imdisk.exe
可汉化的imdisk-cli.zip (42.07 KB, 下载次数: 13)

RC_DATA  下面的 2个大的文本(imdisk  和imisk  --version), UNICODE格式。
其他的直接在字符串表中。
回复

使用道具 举报

 楼主| 发表于 2015-8-2 03:31:30 | 显示全部楼层
本帖最后由 mdyblog 于 2015-8-2 10:09 编辑
freesoft00 发表于 2015-8-2 02:09
作者的回复,具体我也不太清楚


这么说作者接受了。
那就等1天,再更新pecmd/MbrosTool

点评

ImDisk Virtual Disk Driver 2.0.2. ◾Fixed issue with saving virtual disk as image file from Control Panel applet or Explorer context menu. ◾New command line option -o shared that forces d  详情 回复 发表于 2015-8-2 19:51
回复

使用道具 举报

发表于 2015-8-2 19:51:57 | 显示全部楼层
mdyblog 发表于 2015-8-2 03:31
这么说作者接受了。
那就等1天,再更新pecmd/MbrosTool

ImDisk Virtual Disk Driver 2.0.2.
◾Fixed issue with saving virtual disk as image file from Control Panel applet or Explorer context menu.
◾New command line option -o shared that forces driver to open images in shared write mode.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-9-13 05:06

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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