windows - How can I run a batch script in 'Deployment Tools Command Prompt' (to make WinPE iso)? -


i want run batch script inside of deployment tools command prompt (part of windows aik) create winpe iso. went through steps prep media , created script navigate right directory , run oscdimg.exe tool.

the problem runs in normal command prompt, not deployment tools command prompt. possible write script run in deployment tools command prompt instead of regular command prompt?

my basic script:

@echo off @echo running oscdimg create winpe amd64 iso in f:\otheritems\view_stores\winpe7\winpe.iso f: cd \otheritems\view_stores\winpe7 oscdimg.exe -n -bf:\otheritems\view_stores\winpe7\etfsboot.com f:\otheritems\view_stores\winpe7\iso f:\otheritems\view_stores\winpe7\winpe.iso @echo ********************************************************************** @echo done. @echo pause 

if @ properties of 'deployment tools command prompt' target is:

c:\windows\system32\cmd.exe /k "c:\program files\windows aik\tools\petools\pesetenv.cmd" 

so it's not separate program, it's batch run in regular cmd prompt.

you can take content of "pesetenv.cmd" , use prefix batch:

now deployment tools commands should work expected.

edit: scratch above, don't know why thought doing something. adding full path oscdimg.exe , imagex.exe works me.

c:\program files\windows aik\tools\x86\oscdimg.exe -n -bf:\otheritems\view_stores\winpe7\etfsboot.com f:\otheritems\view_stores\winpe7\iso f:\otheritems\view_stores\winpe7\winpe.iso 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -