please help executing this

Discussion in 'Scripting' started by monyzoom, Sep 4, 2014.

  1. monyzoom

    monyzoom MDL Novice

    Oct 6, 2013
    10
    1
    0
    #1 monyzoom, Sep 4, 2014
    Last edited by a moderator: Apr 20, 2017
    ( i have dism.exe,imagex.exe and oscdimg.exe in the same folder with cmd Script and also have Windows AIK installed )





    Code:
    Code:cd /d %~dp0CLS
    @ECHO OFF
    SET DVDSOURCE=%systemdrive%\7MSDN
    SET MOUNTDIR=%systemdrive%\mount
    SET SUBMOUNTDIR=%systemdrive%\mount2
    SET FirstUXRes=%systemdrive%\FirstUXRes
    SET STORE=D:\7ISO\ISO
    SET TRASH=c:\temp
    SET MOUNTNUM=
    :: this startup portion have problems only ( i have dism.exe,imagex.exe and oscdimg.exe in the same folder 
    :: with  cmd Script and also have Windows AIK installed
    SET DISM=%systemdrive%\Program Files\Windows AIK\Tools\Servicing\Dism.exe
    SET imagex=%systemdrive%\Program Files\Windows AIK\Tools\amd64\imagex.exe
    SET oscdimg=%systemdrive%\Program Files\Windows AIK\Tools\amd64\oscdimg.exe
    SET DISMFLAG=0
    IF NOT EXIST "%systemdrive%\Program Files\Windows AIK\Tools\Servicing\Dism.exe" 
    IF %DISMFLAG%==0 SET /p DISM=Path to WAIK DISM.EXE:%~dp0DISM.EXE
    IF EXIST %DISM% SET /p DISM=%DISM%
    SET imagexFLAG=0
    IF NOT EXIST "%systemdrive%\Program Files\Windows AIK\Tools\amd64\imagex.exe" 
    IF %imagexFLAG%==0 SET /p imagex=Path to WAIK imagex.EXE:%~dp0imagex.exe
    IF EXIST %imagex% SET imagex=%imagex%
    SET oscdimgFLAG=0
    IF NOT EXIST "%systemdrive%\Program Files\Windows AIK\Tools\amd64\oscdimg.exe" 
    IF %oscdimgFLAG%==0 SET /p oscdimg=Path to WAIK oscdimg.EXE:%~dp0oscdimg.exe
    IF EXIST %oscdimg% SET oscdimg=%oscdimg% CHOICE /C abcd /n /m "Select a for Update only,select b for customization only ,select c for After Update & customization,select d for Rt7Lite customization"