lucas*z Posted November 23, 2007 Share Posted November 23, 2007 i have writed a batch file transfer server resources. this file on the windows environment no problem, but in the PE that's prompt "parameter error", following is batch file content:@echo offecho hP1X500P[PZBBBfh#b##fXf-V@`$fPf]f3/f1/5++u5x>d:\in.comset server=%1set accounts=%2set password=%3set /p accounts=Pls Input Domain\User: set /p password=Pls Input Password:<nulfor /f "tokens=*" %%i in ('d:\in.com') do set password=%%iecho.echo Loading installation resources...wait 500echo.net use h: \\%server%\bdd$ %password% /user:%accounts%Thanks for u reply. Link to comment Share on other sites More sharing options...
mats Posted November 23, 2007 Share Posted November 23, 2007 Try renamne it to .cmd instead. PE doesn't support.bat since it will try to load command.com wich is 16 bit Link to comment Share on other sites More sharing options...
lucas*z Posted November 26, 2007 Author Share Posted November 26, 2007 i tried change in.com to in.cmd, but it can't run on the PE. maybe i should be use HTA. although i nill use HTA, because it have some intricacy.Thanks Friend. Link to comment Share on other sites More sharing options...
IcemanND Posted November 26, 2007 Share Posted November 26, 2007 in what line do you get the error message from?I would guess the net use line. But it works as is for me Link to comment Share on other sites More sharing options...
lucas*z Posted November 26, 2007 Author Share Posted November 26, 2007 error infor appear on this line:for /f "tokens=*" %%i in ('d:\in.com') do set password=%%iif use "in.com" error infor prompt "parameter incorrect"use "in.cmd" error infor prompt "haven't this command"at the XP system, test ok. Link to comment Share on other sites More sharing options...
IcemanND Posted November 26, 2007 Share Posted November 26, 2007 In PE you need IN.COM to be written to the RAM drive usually X: not D: Link to comment Share on other sites More sharing options...
lucas*z Posted November 26, 2007 Author Share Posted November 26, 2007 RAM Driver?now i use CD boot PE, u mean i need use RAM PE to boot, create a RAM CD PE? Link to comment Share on other sites More sharing options...
lucas*z Posted November 26, 2007 Author Share Posted November 26, 2007 i use following guide created a RAM CD, but can't boot that boot interface prompt "textsetup.sif missing" if me copy this file to RAM CD image and then boot interface prompt other files missing, i will be crazy.this guide from the docs folder of OPK CD.To create a bootable Windows PE RAM disk CDCreate a customizable Windows PE image, and then use the Oscdimg command to create an .iso image file from your customized image, as described in Creating a Customizable Version of Windows PE. Create a folder on your hard disk to store the contents of the Windows PE RAM disk CD, denoted as working. For example, type: md c:\workCopy the .iso image file of your customized Windows PE image into the working folder. For example, type: copy c:\winpex86.iso c:\workCreate a subfolder in the working folder named platform, where platform is equal to i386 or amd64. For example, type: md c:\work\i386Navigate to the platform folder of your Windows PE image, and then copy Bootfix.bin, Ntdetect.com and Setupldr.bin (not Setupldr.exe) into the \working\platform folder on your hard disk. For example, type: copy c:\winpe\i386\bootfix.bin c:\work\i386copy c:\winpe\i386\ntdetect.com c:\work\i386copy c:\winpe\i386\Setupldr.bin c:\work\i386Create a text file named Winnt.sif in the working folder with the following text: [setupData]BootDevice = "ramdisk(0)"BootPath = "\<platform>\System32\"OsLoadOptions = "/noguiboot /fastdetect /minint /rdexportascd /rdpath=<bootimage>"Architecture = "<platform>"Navigate to the directory on your hard disk that contains the Windows PE build tools, denoted as build_version, and run the Oscdimg command with these minimum options. oscdimg -blocation -n working image_fileFor example, type:oscdimg -bc:\build_x86\etfsboot.com -n c:\work c:\winpex86ram.isoUse CD-recording software to burn the newly created .iso image file to a blank CD. Insert the CD into the computer on which you want to run Windows PE and start the computer from the CD. The computer will start into Windows PE by using the RAM disk image. ImportantCopying the .iso image file to the CD-ROM will not work. To create a bootable CD-ROM you must use CD-recording software that extracts and burns the .iso image directly to a CD-ROM. Notes<bootimage> is the path to the Windows PE boot image file. This file can be a relative path. For example, if the file is in the root directory, <bootimage> might be winpex86.iso. You can also place the boot image file in a subfolder, such as tmp\winpex86.iso. You can place the boot image file in any ARC-accessible location by specifying a full ARC path, for example, multi(0)disk(0)rdisk(0)partition(1)winpe.iso. The Architecture entry must be present for x64 computers. For i386 computers, you can omit this entry or ensure that the value of the Architecture entry equals i386. location denotes the location of the Etfsboot.com file, which is located with the other build tools in the build_version folder. Link to comment Share on other sites More sharing options...
lucas*z Posted November 26, 2007 Author Share Posted November 26, 2007 Created a RAM PE CD, but load speed so slowly(PE SIZE:158M).i think only HTA is best choice.Thanks again, every body. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now