0% found this document useful (0 votes)
176 views2 pages

Startnet CMD

The user is trying to run a Ghost imaging program from within a Windows PE environment to clone a hard drive, but is unable to find the recovery image file located on a CD or hard drive. They have tried adding code to both the startnet.cmd and winpeshl.ini files within the PE environment but it did not work. Another user provides suggestions to modify the code by adding commas between drive letters when checking for files, capitalizing letters, adding a colon after the CDROM variable, and changing the command to first set the CDROM variable and then navigate to that drive before running the imaging program.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
176 views2 pages

Startnet CMD

The user is trying to run a Ghost imaging program from within a Windows PE environment to clone a hard drive, but is unable to find the recovery image file located on a CD or hard drive. They have tried adding code to both the startnet.cmd and winpeshl.ini files within the PE environment but it did not work. Another user provides suggestions to modify the code by adding commas between drive letters when checking for files, capitalizing letters, adding a colon after the CDROM variable, and changing the command to first set the CDROM variable and then navigate to that drive before running the imaging program.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

It is what I wanted.

I am woundering how to use this code should have to put in


Winpeshl.ini or startnet.cmd.
I pust it in startnet.cmd file of PE like this.
for %%a in (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 %%a:\imag
ex.exe set UFD=%%a
X:\Program Files\Ghost11-2010\ghost32.exe -clone,mode=pload,src=%CDROM%\RECOVERY
\RECOVERY.gho :1,dst=1:2
It did not work.
Then I tried and put the code in winpeshl.net file of PE like this:
[LaunchApp]
for %%a in (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 %%a:\imag
e\image.gho set CDROM=%%a
AppPath=X:\Program Files\Ghost11-2010\ghost32.exe -clone,mode=pload,src=%CDROM%\
RECOVERY\RECOVERY.gho :1,dst=1:2
In non of the above system was able to find \RECOVERY\RECOVERY.gho in CD drive o
r Hard drive.
I believe I am doing some thing wrong. Could you please write me how do that.
Many thanks
May 18, 2012, 07:04 PM
MBManiac

#7

Join Date: May 2012


Posts: 1 (0.00/day)
Thanks: 0
Thanked 0 Times in 0 Posts
Try making the following changes in blue:
[LaunchApp]
for %%a in (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 %%a:\imag
e\image.gho (SET CDROM=%%a)
AppPath=X:\Program Files\Ghost11-2010\ghost32.exe -clone,mode=pload,src=%CDROM%:
\RECOVERY\RECOVERY.gho
I found adding commas between the drive letters, capitalizing letters (not sure
if that matters) and adding a colon after your %CDROM% variable might just do th
e trick.
Also, once your CDROM variable has been established, you might want to go to it
and then run your command. Here is a sample of one of my WinPE command files:
@Echo Off
Echo.
Echo Initializing Windows Preinstallation Environment. Please wait...
wpeinit
echo.
for %%a in (C,D,E,F,G,H) DO IF EXIST %%a:\GO.CMD (SET CDROM=%%a)
PATH %CDROM%;%PATH%
%CDROM%:

GO
echo.

You might also like