ner Posted April 15, 2010 Share Posted April 15, 2010 Hi All I have created this cmd file that makes a custom ghost recovery disk, however this does not work on windows 7 builds:here is teh scrip:D /s/q C:\PE\winpe_x86cd "c:\Program files\windows AIK\tools\petools"call copype.cmd x86 C:\PE\winpe_x86pausecopy c:\PE\winpe_x86\winpe.wim c:\PE\winpe_x86\ISO\Sources\boot.wimpausecd "C:\Program Files\Windows AIK\Tools\x86\Servicing"Dism /Mount-Wim /WimFile:C:\PE\winpe_x86\ISO\Sources\boot.wim /index:1 /MountDir:C:\PE\winpe_x86\mountPAUSECopy D:\MakePE3\Windows\System32\*.* C:\PE\Winpe_x86\Mount\Windows\System32Copy D:\MakePE3\Icon\*.* C:\PE\Winpe_x86\ISOpausecd "C:\Program Files\Windows AIK\Tools\x86\Servicing"Dism /Unmount-Wim /MountDir:C:\PE\winpe_x86\mount /Commit PAUSEcd "C:\Program Files\Windows AIK\Tools\x86"oscdimg -n -bc:\PE\winpe_x86\etfsboot.com c:\PE\winpe_x86\ISO c:\PE\winpe_x86\winpe_x86.isoPAUSEand we get this error, see attachment please.If i manually follow the patch its all correct, so is something wrong with te commands Link to comment Share on other sites More sharing options...
ner Posted April 15, 2010 Author Share Posted April 15, 2010 attachment Link to comment Share on other sites More sharing options...
Kullenen_Ask Posted April 15, 2010 Share Posted April 15, 2010 attachmentdid you install aik? you shouldn't write copype.cmd from a normal command promt, you should write from aik command shell. Link to comment Share on other sites More sharing options...
ner Posted April 15, 2010 Author Share Posted April 15, 2010 (edited) Hello, Thanks for your reply, Yes i do have AIK installed under windows 7 (version 3.0) batch file worked fully under Vista. However if i call the call copype.cmd from the command promt it works, if i then delete this part from my batch file the rest all works, but i dont understand why? i also need to run this command from the command promt as it dos not work from the batch file:oscdimg -n -bc:\PE\winpe_x86\etfsboot.com c:\PE\winpe_x86\ISO c:\PE\winpe_x86\winpe_x86.isodoes windows 7 look at batch files differently then? Edited April 15, 2010 by ner Link to comment Share on other sites More sharing options...
Tripredacus Posted April 15, 2010 Share Posted April 15, 2010 you should try copype.cmd without using call. What error do you get with oscdimg? 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