无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
12
返回列表 发新帖
楼主: maanu
打印 上一主题 下一主题

PECMD and Pagefile.sys in PE

[复制链接]
31#
 楼主| 发表于 2009-11-11 21:10:18 | 只看该作者
@ Pseudo

i am sorry to report , but the following did not work .

@ echo off
PECMD.EXE FILE C:\PAGEFILE.SYS
PECMD.EXE PAGE C:\PAGEFILE.SYS 64 128

please note ,that i had PECMD.EXE in same directory as the bat file .  the bat file appears and then exit right at the spot.

is there anything wrong ?

i also tried to put pecmd.exe in systemroot \system32  folder . but nothing happen .

thank you for your time.

@ coolg


thank you so much for the PECMD translation , it will be very useful . 

Regards,
Maanu from Pakistan

[ 本帖最后由 maanu 于 2009-11-11 21:11 编辑 ]
回复

使用道具 举报

32#
发表于 2009-11-11 21:11:41 | 只看该作者
这位来自中国友邦——巴基斯坦的maanu的认真治学态度令人敬佩,建议以后老九发布新版本的PECMD的英文化工作由P大、V大等英文水平较佳者协助完成(含资源和帮助)
@maanu
PECMD.EXE only runs on PE。

[ 本帖最后由 netwinxp 于 2009-11-11 21:18 编辑 ]
回复

使用道具 举报

33#
 楼主| 发表于 2009-11-11 21:21:12 | 只看该作者
@ netwinxp

thank for the nice words dear moderator .

and yes i am running it in PE .  the pe made by winbuilder . ram based Load . xp sp2 based.
回复

使用道具 举报

34#
发表于 2009-11-11 21:32:01 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

35#
发表于 2009-11-11 21:43:25 | 只看该作者
@maanu
1. open the file---regsetup.hiv(using the registrytools)
2. search the key&string---"cmdline"="cmd.exe"(maybe use other software--the shell of desktop)
    ***type:reg_expand_sz***
3. modify the string to---"PECMD.EXE MAIN  %SystemRoot%\System32\PECMD.INI"
    or "cmd.exe /k autorun.cmd"(use autorun.cmd to delete the file---PAGEFILE.SYS)
4. save the file---regsetup.hiv

***好久没搞英语了,翻译得不对的地方请见谅***
***这位巴基斯坦朋友的意思是——使用winbuilder创建PE用PECMD的一些问题。但该软件默认运行的命令行是cmd.exe(或者其他shell软件),所以自然不会跑到PECMD.EXE上,要改成"PECMD.EXE MAIN  %SystemRoot%\System32\PECMD.INI"才行,本人的英语大多还给老师了,上面的中国式英语基本点明了要点,当然如果改成像"cmd.exe /k autorun.cmd"然后再用autorun.cmd也可以实现删除页面文件,但关机会比较成问题,请有英语水平较佳的帮忙修改一下*^_^*

[ 本帖最后由 netwinxp 于 2009-11-11 22:16 编辑 ]
回复

使用道具 举报

36#
 楼主| 发表于 2009-11-11 22:15:18 | 只看该作者
@ post # 35

thank you Mr.Moderator for taking interest .

but when i load setreg.hiv into regedit , with " cmdline " it is showing me " Peloader.exe" not " cmd.exe " .

should i change it ?

or may be i am looking in wrong side ?  

actually i wanted to use PECMD.exe to automate the PAGEFILE issue in pe mode . otherwise we already have a tool made by Paraguilder for pe which sets pagefile.sys . he is author of runscanner too . name of file is setpagefile.exe .

and by the way , Believe me your english is very good .
回复

使用道具 举报

37#
发表于 2009-11-11 22:19:01 | 只看该作者
the shell is "peloader"?change it.you can modify the pecmd.ini to delete the file--C:\PAGEFILE.SYS(FILE C:\PAGEFILE.SYS),the shell will change to explorer.exe.
or "cmd.exe /k autorun.cmd" ***autorun.cmd is your batch file to auto runing.but it would be reboot when finished the batch.

[ 本帖最后由 netwinxp 于 2009-11-11 22:33 编辑 ]
回复

使用道具 举报

38#
 楼主| 发表于 2009-11-11 22:27:06 | 只看该作者
WOW .

it seems i have found the issue .

in script file put the following ,  ( we use scripts in winbuilder to add apps , drivers etc )

a user at boot-Land forums , JFX made a script to enable themes . he used the chinese guys methods and port to winbuilder . he uses the following lines ,

[PECMD]
// Use PECMD rather than PELoader
RegWrite,HKLM,0x1,WB-Setup\Setup,CmdLine,"PECMD.EXE MAIN %SystemRoot%\SYSTEM32\PECMD.INI"
If,%LogonType%,Equal,True,RegWrite,HKLM,0x4,"WB-Software\Microsoft\Windows NT\CurrentVersion\Winlogon",LogonType,1
FileCopy,%ScriptDir%\PECMD\PECMD.exe,%target_sys%,NOWARN
FileCopy,%ScriptDir%\PECMD\PECMD.ini,%target_sys%,NOWARN
//


now the following is in his PECMD.INI ,

FIND Explorer.EXE,!TEAM SHEL %WinDir%\EXPLORER.EXE|LOGO|TEXT

now should i add the following before the above line or after ?

PECMD FILE C:\PAGEFILE.SYS
PECMD PAGE C:\PAGEFILE.SYS 64 128
回复

使用道具 举报

39#
发表于 2009-11-11 22:28:07 | 只看该作者
en...very good:)
回复

使用道具 举报

40#
发表于 2009-11-11 22:29:22 | 只看该作者
原帖由 maanu 于 2009-11-11 22:15 发表
@ post # 35

thank you Mr.Moderator for taking interest .

but when i load setreg.hiv into regedit , with " cmdline " it is showing me " Peloader.exe" not " cmd.exe " .

should i change  ...



bat file:

Start /wait PECMD.EXE LOAD Setpage.ini


Setpage.ini:

FILE C:\pagefile.sys
PAGE C:\pagefile.sys XX XXX
回复

使用道具 举报

41#
 楼主| 发表于 2009-11-11 22:35:18 | 只看该作者
@ Coolg

are you saying that if i use your method , then i dont need to shift cmdline,exe from peloader.exe to PECMD.EXE ?

Thanks
回复

使用道具 举报

42#
发表于 2009-11-11 22:46:32 | 只看该作者
原帖由 maanu 于 2009-11-11 22:35 发表
@ Coolg

are you saying that if i use your method , then i dont need to shift cmdline,exe from peloader.exe to PECMD.EXE ?

Thanks



you try..
回复

使用道具 举报

43#
发表于 2009-11-11 22:50:12 | 只看该作者
I dont think peloader better than pecmd.pecmd lifting a 24-hour-reboot limit with winlogon and the shell is explorer.

[ 本帖最后由 netwinxp 于 2009-11-11 22:53 编辑 ]
回复

使用道具 举报

44#
 楼主| 发表于 2009-11-11 22:51:07 | 只看该作者
i have just booted in pe from usb . used your method ,

maanu.bat file ,

start /wait PECMD.EXE LOAD maanu.ini

maanu.ini
FILE C:\PAGEFILE.SYS
PAGE C:\PAGEFILE.SYS 64 128

first command successful . means PAGEFILE.SYS which was already at
C:\ driver removed .

BUT not new pagefile,sys was created .  i wonder what could go wrong .
回复

使用道具 举报

45#
发表于 2009-11-11 22:55:53 | 只看该作者
FILE C:\PAGEFILE.SYS
WAIT 500
PAGE C:\PAGEFILE.SYS 64 128
WAIT 3000

[ 本帖最后由 netwinxp 于 2009-11-11 22:57 编辑 ]
回复

使用道具 举报

46#
 楼主| 发表于 2009-11-11 22:58:15 | 只看该作者
@ netwinxp

thank you brother . i will now restart and report back . thanks .
回复

使用道具 举报

47#
 楼主| 发表于 2009-11-11 23:09:38 | 只看该作者
@ netwinxp

i am at pe now . posting from it .

the solution unfortunately did not work .

what should i do , reboot and make another project with PECMD as default other then PeLoader ?

i am waiting ,

thanks .

edit : 

is there any way to tell PECMD to save the log what it did , so that i can say what it is telling me about the above commands .?

[ 本帖最后由 maanu 于 2009-11-11 23:13 编辑 ]
回复

使用道具 举报

48#
发表于 2009-11-11 23:12:59 | 只看该作者
PECMD can use shel xxxx  to load peloader or anthoer shell software.but created pagefile.sys....
***LOG PECMD*************
LOGS %SystemRoot%\xxxx.log
*************************

[ 本帖最后由 netwinxp 于 2009-11-11 23:24 编辑 ]
回复

使用道具 举报

49#
发表于 2009-11-11 23:14:05 | 只看该作者
原帖由 maanu 于 2009-11-11 22:51 发表
i have just booted in pe from usb . used your method ,

maanu.bat file ,

start /wait PECMD.EXE LOAD maanu.ini

maanu.ini
FILE C:\PAGEFILE.SYS
PAGE C:\PAGEFILE.SYS 64 128

first co ...


Created pagefile in USB?

[PAGE]
Format: PAGE <page file path "" The initial size of the "[Max]
Function: Set the page file (virtual memory).
Parameters:
■ specify the page file path, only with DOS 8.3 format, the path, such as "C: \ PageFile.sys".
■ The initial size and maximum units are MB; when the maximum value is omitted, the automatically set the initial size = max.
Example:
◆ PAGE C: \ PAGEFILE.SYS 128 256
Note:
※ If you set the page file, then the district will be unable to perform formatting and other operations.
※ When the available memory, "the initial size, this command will not set the page file, which can be defined as a set the initial size of pages of documents conditions.
※ This command has intelligent functions, namely, the definition of pages from your file name (including drive letter) is located in line with the district started to search conditions (hard drives and capacity)
District to set page file to avoid the slow U-disk and mobile hard disk. U disk or mobile hard disk to start may be defined in the profile page of the text
Pieces on U disk or mobile hard disk
. After a search if not found qualified hard disk partition settings page document before the use of U disk or mobile hard disk
Settings pages.
回复

使用道具 举报

50#
 楼主| 发表于 2009-11-11 23:17:44 | 只看该作者
yes i have read it . and i am not using any usb hard disk . i am use C driver which have my windows installed . it is 10 GB NTFS  .

should i give it the last try by making the project again , this time by default PECMD other then PELOADER. ?
回复

使用道具 举报

51#
发表于 2009-11-11 23:27:55 | 只看该作者
原帖由 maanu 于 2009-11-11 23:17 发表
yes i have read it . and i am not using any usb hard disk . i am use C driver which have my windows installed . it is 10 GB NTFS  .

should i give it the last try by making the project again , ...



windows used wincmd.exe ....

http://bbs.wuyou.net/forum.php?mod=viewthread&tid=121828&extra=page%3D8
回复

使用道具 举报

52#
 楼主| 发表于 2009-11-11 23:37:46 | 只看该作者
i am sorry , but i am failed to understand that why i should  use WINCMD.exe ?

thanks.

( rebooting to real system )

edit : 

ok i am going to hospital to visit my grandmother .  i ll come back and build a new project with pe , using PECMD as default other then PELOADER.EXE . 

the following will be in PECMD.ini file . ( note , the first line is from JFX ) .

FIND Explorer.EXE,!TEAM SHEL %WinDir%\EXPLORER.EXE|LOGO|TEXT
WAIT 2000
FILE C:\PAGEFILE.SYS
WAIT 400
PAGE C:\PAGEFILE.SYS 64 128
WAIT 3000


, please tell me if something is wrong .

thanks in advance. 

[ 本帖最后由 maanu 于 2009-11-11 23:50 编辑 ]
回复

使用道具 举报

53#
发表于 2009-11-11 23:58:36 | 只看该作者
原帖由 maanu 于 2009-11-11 23:37 发表
i am sorry , but i am failed to understand that why i should  use WINCMD.exe ?

thanks.

( rebooting to real system )

edit :

ok i am going to hospital to visit my grandm ...



FILE C:\PAGEFILE.SYS
WAIT 400
PAGE C:\PAGEFILE.SYS 64 128
WAIT 3000

FIND Explorer.EXE,!TEAM SHEL %WinDir%\EXPLORER.EXE|LOGO|TEXT


note:
set pagefile before load explorer.exe!

[ 本帖最后由 coolg 于 2009-11-13 10:20 编辑 ]
回复

使用道具 举报

54#
发表于 2009-11-12 09:41:24 | 只看该作者
i think it's not necessary to wait,and find is not necessary,too.
回复

使用道具 举报

55#
发表于 2009-11-12 18:38:24 | 只看该作者
原帖由 yichya 于 2009-11-12 09:41 发表
i think it's not necessary to wait,and find is not necessary,too.

如果用来启动到桌面那不需要延时,如果仅仅用来删除和创建PAGEFILE.SYS然后就重新启动,那肯定要加延时,毕竟创建或者拷贝文件需要时间的,以前在研究在SHELL加载之前加载驱动这个问题的时候就已经发现拷贝文件需要延时一段时间。
回复

使用道具 举报

56#
 楼主| 发表于 2011-8-18 06:27:04 | 只看该作者
i know it is an OLD thread , but still i would like to share.

now PECMD working ok with english . few problems there , but hopefully we will solve it .

i want to share following PECMD INI file , and few questions ,



TEAM ENVI W=%WinDir%|ENVI WS=%W%\SYSTEM32|ENVI WSD=%WS%\Drivers|ENVI T=%SystemDrive%\tools
TEAM FILE %W%\TXTSETUP.SIF*|FILE %WS%\NTOSKRNL.EXE*|FILE %WS%\win32k.sys|PATH #%WS%\CONFIG|FILE %WS%\*.*_|FILE %WSD%\*.sys
FIND MEM<128,CALL SetPageFile1
LINK %desktop%\diskgenius,%WS%\DG.EXE
LINK %quicklaunch%\diskgenius,%W%\DG.EXE
LINK %startmenu%\diskgenius,%WS%\DG.EXE
SITE %USERPROFILE%\¡¸¿a꼡12Ëμ¥\3ìDò\Æô¶ˉ,+H



CALL RegImdRk
`×¢2áIMDISKóò¼ü
_SUB RegImdRk
  REGI HKCR\Drive\shell\ImDiskSaveImage\=±SAVE IMAGE
  REGI HKCR\Drive\shell\ImDiskSaveImage\command\=rundll32.exe imdisk.cpl,RunDLL_SaveImageFile %L
  REGI HKCR\Drive\shell\ImDiskUnmount\=UNMOUNT
  REGI HKCR\Drive\shell\ImDiskUnmount\command\=rundll32.exe imdisk.cpl,RunDLL_RemoveDevice %L
  REGI HKLM\SOFTWARE\Classes\Ultraiso\shell\ImDiskMountFile\=¼óÔØÎaImDiskDéÄa′ÅÅì
  REGI HKLM\SOFTWARE\Classes\Ultraiso\shell\ImDiskMountFile\command\=rundll32.exe imdisk.cpl,RunDLL_MountFile %L
  REGI HKLM\SOFTWARE\Classes\Winimage\shell\ImDiskMountFile\=¼óÔØÎaImDiskDéÄa′ÅÅì
  REGI HKLM\SOFTWARE\Classes\Winimage\shell\ImDiskMountFile\command\=rundll32.exe imdisk.cpl,RunDLL_MountFile %L
_END

_SUB SetPageFile
       ENVI V1=Your computer is low in virtual memory which certain
       ENVI V2=programs may need to use. It improves system speed and
       ENVI V3=makes system more stable as well.
       ENVI V4=Do you want to set a Pagefile for the virtual memory?
       ENVI V5=Set Pagefile
     MESS %V1%\n%V2%\n%V3%\n%V4%@%V5%#YN*20000
     FIND $YESNO=YES,PAGE D:\PAGEFILE.SYS 30 40
     TEAM ENVI V1=|V2=|V3=|V4=|V5=
_END

_SUB SetPageFile1
       PAGE C:\PAGEFILE.SYS 30 40
_END


CALL $SHELL32.DLL,DllInstall,#1,U
DISP W800 H600 B32 F60
WALL %CurDrv%\WALL.JPG     
WALL %w%\WALL.JPG
SHEL %W%\EXPLORER.EXE


from above , the shortcuts were not made successfully , may be the problem is with %USERPROFILE% ?  i copied it from TangoPE .

can someone please correct it ?

also , PAGEFILE was not created on D: drive , although the popup was shown during PE boot , i pressed on YES , but no pagefile.sys was on D drive ?

WALL.JPG   , the wallpaper was also not found . what is necessery for wallpapers to load OK ?


thanks in advance.


Regards,
Maanu from Pakistan
回复

使用道具 举报

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

本版积分规则

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

闽公网安备 35020302032614号

GMT+8, 2024-9-21 00:43

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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