[Q]: How to avoid "pending updates" error when integrating MSU updates by DISM

Discussion in 'Windows 8' started by moderate, Jul 15, 2013.

  1. moderate

    moderate MDL Guru

    Aug 31, 2009
    2,648
    2,153
    90
    #1 moderate, Jul 15, 2013
    Last edited by a moderator: Apr 20, 2017
    Hello,

    I just tried to integrate MSU updates to W8 Install.wim by DISM.
    I executed (after other commands):
    Code:
    DISM /image:C:\mount /Add-Package /PackagePath:C:\MSU
    In C:\MSU I have:
    Code:
    96 File(s)    797˙689˙211 bytes
    20. 06. 2013  03:08         9˙602˙439 AMD64_ARM_X86-all-windows8-rt-kb2840632-x86_5a2074567fbc6cb4e7339dfb8adbeadfaa58b766.msu
    24. 10. 2012  01:35         8˙215˙009 AMD64_IA64_X86-all-windows8-rt-kb2729462-x86_3a6f7896b3481f266299544594f1e7bcbb07701a.msu
    22. 05. 2013  06:10         4˙488˙044 AMD64_IA64_X86-all-windows8-rt-kb2832418-x86_76a41971ecd26f70c7498387a1bc71ff2c780d97.msu
    19. 06. 2013  03:43           432˙638 AMD64_IA64_X86-all-windows8-rt-kb2840633-x86_84b1b6aa29a0e5531841f4a7070e159a0480a98a.msu
    22. 04. 2013  22:42         6˙330˙319 AMD64_X86_ARM-all-windows8-rt-kb2804583-x86_a628a18dca4f23829e7907b3bf39416858c165bf.msu
    08. 05. 2013  01:42        24˙761˙673 AMD64_X86_ARM-all-windows8-rt-kb2805222-x86_7c489340bd09139d3c24283d26050fc2a01b0984.msu
    06. 05. 2013  20:51        19˙533˙363 AMD64_X86_ARM-all-windows8-rt-kb2805227-x86_b152e28ad916ff43a8093c6cdd33e3ee373a7936.msu
    10. 12. 2012  22:05           494˙166 AMD64_X86_IA64-all-windows8-rt-kb2736693-x86_a35f02e2579f7038c013be7a633a0207c6adaa4c.msu
    10. 12. 2012  21:59         5˙134˙404 AMD64_X86_IA64-all-windows8-rt-kb2756923-x86_9dfc61816aae692af79e88f6a72a948b53afb95c.msu
    03. 06. 2013  21:04           510˙840 AMD64_X86_IA64-all-windows8-rt-kb2836947-x86_70d8ea768bd24e9dc120855150c5713aba20e479.msu
    01. 01. 2013  05:44        36˙190˙271 ARM_AMD64_X86-all-windows8-rt-kb2750149-x86_68831529066d7bc16704e792f2ccfa5ecd0b2dcc.msu
    23. 01. 2013  01:08         3˙007˙496 ARM_AMD64_X86-all-windows8-rt-kb2789649-x86_59d43872e260a2865d8f2b26db0120ac4a1df88b.msu
    11. 12. 2012  02:31        12˙176˙004 ARM_X86_AMD64-all-windows8-rt-kb2742614-x86_7552a39fc25758fac5415c0cc516ef6c233d5f9e.msu
    11. 12. 2012  02:25         8˙328˙633 IA64_AMD64_X86-all-windows8-rt-kb2742616-x86_8be34db52d85909df71825f08a23283cc43e5b9a.msu
    15. 11. 2012  02:22        40˙237˙355 IA64_AMD64_X86-all-windows8-rt-kb2769166-x86_317e8391c71605a6ce4ba15fd9e493ee6902f416.msu
    24. 01. 2013  01:44         5˙121˙294 IA64_X86_AMD64-all-windows8-rt-kb2789650-x86_346b357caa376e6fdeb6e4b2a67fcd380ebc146b.msu
    22. 04. 2013  22:43           502˙241 IA64_X86_AMD64-all-windows8-rt-kb2804584-x86_ba88932f83e1ead03bfa1ad1f9dec6fa55d01cc0.msu
    22. 05. 2013  01:41         6˙586˙657 IA64_X86_AMD64-all-windows8-rt-kb2833959-x86_9a98f848314c25aa21209ec2ef95ed687e23d795.msu
    06. 06. 2013  01:02         4˙035˙556 IA64_X86_AMD64-all-windows8-rt-kb2836946-x86_90044dab1d7f818ad08dd81a5185245c098c74c8.msu
    19. 06. 2013  03:51         2˙340˙999 IA64_X86_AMD64-all-windows8-rt-kb2844289-x86_8678984f040082f611f344180a04fbc135d87bd7.msu
    06. 12. 2012  08:00         5˙611˙898 X86-all-windows6.2-kb2779444-x86_e97bda05084d3b269c35d0d1a26a5d51be8dcb2e.msu
    24. 10. 2012  22:48           245˙037 X86-all-windows8-rt-kb2727528-x86_8945e6ecc1fa716a7c583c71ab546854c1d1ecb7.msu
    19. 12. 2012  03:54           430˙045 X86-all-windows8-rt-kb2753842-v2-x86_64f60005e462809b6f4a3f4b3250445751a9ec88.msu
    25. 09. 2012  18:31       102˙182˙172 X86-all-windows8-rt-kb2756872-x86_63025d572df576b60cbc792648caf3e13cf380b6.msu
    10. 12. 2012  19:05           937˙139 X86-all-windows8-rt-kb2757638-x86_6c05f16c90ab26990f2ad574aba2ce2bcee58b5d.msu
    08. 11. 2012  01:04         5˙865˙471 X86-all-windows8-rt-kb2758246-v2-x86_13cf244d95c14b8b25c7923e512ef25043e05227.msu
    02. 10. 2012  01:14         5˙451˙058 X86-all-windows8-rt-kb2761094-x86_a8115babce7aa0ddc0f9a6d313fe6ca3ed21be3a.msu
    04. 10. 2012  23:26           394˙572 X86-all-windows8-rt-kb2764870-x86_c63a7ecaf16edfc8298a032623eabea9e0471e62.msu
    11. 10. 2012  02:24         1˙119˙975 X86-all-windows8-rt-kb2768703-x86_f3d4b0a4546a591b025404df86ffcb45387f4f2d.msu
    08. 11. 2012  01:00           430˙978 X86-all-windows8-rt-kb2769034-x86_13559be1fbf7090ace5aa224fbd24289429dde25.msu
    08. 11. 2012  00:35        83˙545˙622 X86-all-windows8-rt-kb2769165-x86_59965ce8134057c28081bbb6ae138feaeebe60dd.msu
    19. 10. 2012  20:26         6˙115˙272 X86-all-windows8-rt-kb2770407-x86_2dd622605bf64a38466e5a58aed0e01663b43dd2.msu
    20. 11. 2012  07:41           435˙338 X86-all-windows8-rt-kb2770660-x86_6d0e8807409be70401cf46f3b5758e7fdbbd8fd8.msu
    08. 11. 2012  01:05        53˙131˙220 X86-all-windows8-rt-kb2770917-x86_6193b48e37c907123950baa6e6171e72a364cbba.msu
    08. 11. 2012  01:03         3˙317˙337 X86-all-windows8-rt-kb2771744-x86_751fa5bca05d58fde0dd1bc4aac19e650b92e595.msu
    08. 11. 2012  01:04         2˙653˙648 X86-all-windows8-rt-kb2771821-x86_429ccdb83f763a6399e56dddc53b44c04d9c5a45.msu
    08. 11. 2012  01:02        14˙059˙280 X86-all-windows8-rt-kb2777166-x86_9ef65c3ae237435cc7bc465b056d92372e5905e6.msu
    21. 11. 2012  01:55           388˙752 X86-all-windows8-rt-kb2777294-x86_a5e65a99416239a6d77fe9851154eef230dbd732.msu
    08. 11. 2012  01:02         1˙720˙391 X86-all-windows8-rt-kb2778171-x86_08019403b0510557667268dbbe0afada9faa3305.msu
    06. 12. 2012  08:11        35˙320˙795 X86-all-windows8-rt-kb2779768-x86_b0670d4135b158c7ff1a289ca5a8bb23407365eb.msu
    08. 11. 2012  01:03         3˙152˙092 X86-all-windows8-rt-kb2780342-x86_0a88cb6eaf81134d1f6a633d8bd81d5399486ac4.msu
    08. 11. 2012  01:02           422˙366 X86-all-windows8-rt-kb2780523-x86_f6f1173c243a31b40ed036026d092e31a0589c30.msu
    26. 03. 2013  23:03         4˙526˙761 X86-all-windows8-rt-kb2781197-v2-x86_03e4c4fe3b15ccbececb4c583e2a9a25cdd5b579.msu
    06. 12. 2012  08:13           545˙622 X86-all-windows8-rt-kb2782419-x86_2418332f288fbfa3fa9aab8ee4ac4114b670fa98.msu
    06. 12. 2012  08:14         1˙126˙454 X86-all-windows8-rt-kb2783251-x86_70e5ba6d22f6afe320960903eb8eed11d3a42cdb.msu
    06. 12. 2012  08:14         3˙485˙048 X86-all-windows8-rt-kb2784160-x86_a3052e25096d321d02005f26903ce992a9fa24e1.msu
    01. 01. 2013  06:09        21˙373˙030 X86-all-windows8-rt-kb2785094-x86_cc72d0c477d2a24902a9b8b8a7468deae39c73e3.msu
    10. 12. 2012  20:01           244˙153 X86-all-windows8-rt-kb2785220-x86_4812d22072dff4c405bab0a6873a35bac4561898.msu
    06. 12. 2012  08:14           246˙004 X86-all-windows8-rt-kb2788261-x86_544eab304ed46f302da3a8033df51a3bdc56009e.msu
    01. 01. 2013  06:11         2˙385˙456 X86-all-windows8-rt-kb2788350-x86_3510a6cf92b84fb57d4dcf94f7117c85e946345e.msu
    01. 01. 2013  06:11         1˙957˙695 X86-all-windows8-rt-kb2790920-x86_8af4a653c924bf8a51876aa82170b6297c167da1.msu
    01. 01. 2013  06:11           300˙768 X86-all-windows8-rt-kb2792009-x86_c6243ee05eb001e90a41afd2a98bd8771e4d92fe.msu
    05. 02. 2013  19:38        17˙876˙265 X86-all-windows8-rt-kb2795944-x86_40affd1a3ce048c5c1bc80d5cc8c241461c526ee.msu
    07. 05. 2013  00:41        14˙864˙583 X86-all-windows8-rt-kb2798162-x86_80dd1dce8a5835e9d9b813f0782373f4aade543b.msu
    03. 04. 2013  02:56           844˙317 X86-all-windows8-rt-kb2800033-x86_037bc2735e2478973cab592858db818b702cf24e.msu
    04. 03. 2013  06:37           762˙463 X86-all-windows8-rt-kb2800088-x86_e62e4fb43abe6cd0b1e49d662ec1683c5da3ece8.msu
    05. 02. 2013  19:37           901˙786 X86-all-windows8-rt-kb2803676-x86_53dd355aed0fa72048568f8521de7568ab3c9590.msu
    19. 06. 2013  18:52         1˙085˙611 X86-all-windows8-rt-kb2803821-x86_a8b32a0bc2f768e904055b767408e9d0d37fa8b3.msu
    06. 05. 2013  20:44         1˙634˙383 X86-all-windows8-rt-kb2805966-v3-x86_3bf11e4172d46ac8c8605dfab8699f054d04869d.msu
    20. 02. 2013  10:48           263˙873 X86-all-windows8-rt-kb2807986-x86_5ddbe116a9a90064e5aa2e67acb2f696351fefd5.msu
    03. 06. 2013  21:07         1˙204˙318 X86-all-windows8-rt-kb2808679-x86_105cc8a58815a00c6e17e72420a1fec6279c6934.msu
    04. 03. 2013  06:37        11˙837˙324 X86-all-windows8-rt-kb2811660-x86_15f95a69eeec36f0fb41937d45e85671e4367b8b.msu
    04. 03. 2013  06:37           900˙520 X86-all-windows8-rt-kb2812829-x86_27994ff163f1c8536da02cfd3047701d1e2c6d31.msu
    22. 05. 2013  06:32         2˙150˙260 X86-all-windows8-rt-kb2813430-x86_4a22cff4ccbd35f548371ca530b08487e074f23e.msu
    04. 03. 2013  06:38         2˙124˙198 X86-all-windows8-rt-kb2815769-x86_5478906f90be375d4dcefb16cb806c294cb2b0f8.msu
    01. 05. 2013  20:28           215˙006 X86-all-windows8-rt-kb2820197-x86_2e3164a03bfd4631e6950b647e7c90ec5c504935.msu
    06. 05. 2013  21:50         2˙069˙643 X86-all-windows8-rt-kb2820330-x86_38d2974381f74f7ea778334a3ee7b0d599bf987e.msu
    06. 06. 2013  07:31         4˙682˙508 X86-all-windows8-rt-kb2821895-x86_efb0ce852eea57be797e403ca9ee32e4c50a77dc.msu
    03. 04. 2013  03:07        29˙748˙089 X86-all-windows8-rt-kb2822241-x86_ada75e2155102a2c9fc7940f3b02de5efd4611e0.msu
    07. 03. 2013  23:32           353˙343 X86-all-windows8-rt-kb2823233-x86_d636bde8466ac5f86dfc9c9581bbad37f5c155cc.msu
    03. 04. 2013  03:10           395˙426 X86-all-windows8-rt-kb2823516-x86_7be6aff2274a5ce9f672ec175056c91f870dc6ad.msu
    23. 04. 2013  00:35           523˙759 X86-all-windows8-rt-kb2829254-x86_1f2d48dafd9c1bac58485205b27229e529298e4a.msu
    23. 04. 2013  00:46         3˙107˙081 X86-all-windows8-rt-kb2829361-x86_8ddfbf72b843033314ab9974be37c10f36a95ce4.msu
    23. 04. 2013  00:41           979˙111 X86-all-windows8-rt-kb2830290-x86_1d95b90d036228925cb38e62bfab04db8bff12e7.msu
    22. 05. 2013  23:55           917˙015 X86-all-windows8-rt-kb2835361-x86_f6632926c316e71cd407b0f03a7c2a51163b1e46.msu
    22. 05. 2013  23:32         3˙237˙341 X86-all-windows8-rt-kb2835364-x86_8cb6d3b1791bf32b8432e2ba095d71b81e38e2f8.msu
    06. 05. 2013  22:47        37˙604˙873 X86-all-windows8-rt-kb2836988-x86_180ddbf9ab5a4538e7fb39d6527f2776f942520d.msu
    22. 05. 2013  06:43         3˙112˙532 X86-all-windows8-rt-kb2839229-x86_e7db93578b3f0d12f047fa4ed5c13f7f78333ab5.msu
    22. 05. 2013  06:56           425˙810 X86-all-windows8-rt-kb2839894-x86_032975e10ece4bc66bd1824f6908b14644c5e6bd.msu
    19. 06. 2013  04:03           428˙794 X86-all-windows8-rt-kb2845187-x86_ebf41f22c3f68b71d73a96cdbc77119d5b65bb6d.msu
    06. 06. 2013  07:38        22˙898˙631 X86-all-windows8-rt-kb2845533-x86_0ca17433963fc6e00237fbaf9e4d2fafed16d3aa.msu
    22. 05. 2013  01:23         1˙282˙238 X86-all-windows8-rt-kb2845690-x86_b128424c8f128aa75f4afaa012419b9866034a60.msu
    19. 06. 2013  23:26        17˙397˙024 X86-all-windows8-rt-kb2846071-x86_3128ccfdcc4ee6efb0b94bd523e73c5984463fca.msu
    06. 06. 2013  07:41           641˙147 X86-all-windows8-rt-kb2850674-x86_48f060d6160d147cc5c1d1ab96103576a1bc841d.msu
    19. 06. 2013  05:00         2˙108˙191 X86-all-windows8-rt-kb2850851-x86_234cf8fc55deb89a515ec44a93e50ca53155f75b.msu
    04. 07. 2013  02:05           320˙900 X86-all-windows8-rt-kb2851234-x86_dc770f6b353cd63343b061c252c293c8a80a813a.msu
    06. 06. 2013  07:41           753˙280 X86-all-windows8-rt-kb2853915-x86_d2a69416ae2672dead99249e54192b5aa81bfa7d.msu
    03. 07. 2013  09:05        14˙404˙512 X86-all-windows8-rt-kb2855336-x86_54bbd6795c4870139863a97488d894f8531a5c8d.msu
    06. 06. 2013  07:40           660˙214 X86-all-windows8-rt-kb2856758-x86_fe4f5f5e85c5dded8b4eac51a2658b9afb4d0e16.msu
    03. 07. 2013  21:32        10˙361˙315 X86-all-windows8-rt-kb2857645-x86_deb4b5fa526bee4ceb32e106632b20610810b547.msu
    03. 07. 2013  09:32         6˙404˙414 X86-all-windows8-rt-kb2859541-x86_bf0f0e0f106d18f9708da2a33a01f90d5fb52b5a.msu
    03. 07. 2013  09:05           616˙412 X86-all-windows8-rt-kb2862073-x86_6bfb273e550a39d7e86ce16d7dd661331e1d3a5a.msu
    03. 07. 2013  09:05           299˙269 X86-all-windows8-rt-kb2864629-x86_d80890e9688f4945eaaeec1e33cac692c940d23b.msu
    28. 08. 2012  01:41           680˙988 X86-all-windows8-rt-kb976002-x86_1b87593f7f04c7a6e0f31fc745df44f27ff5802d.msu
    24. 10. 2012  22:43         6˙047˙133 X86_AMD64_ARM-all-windows8-rt-kb2737084-x86_9d5ef06227553688ec396d16b0dbc9b0ded173b9.msu
    22. 05. 2013  01:39         7˙412˙461 X86_AMD64_ARM-all-windows8-rt-kb2833958-x86_8be5c55e3cc7c021ad7176e59dd2d07eb01070d8.msu
    
    It began OK, it integrated 1st 68 MSUs without error, but for rest 28, DISM reported:
    28x
    Error: 0x800f082f
    Package XXXXXXXXXXXXXX may have failed due to pending updates to servicing components in the image. Try the command again.


    dism.jpg

    There is also log file here (link): (No, it isn't. :) )

    Could pls somebody skilled tell me, what has happened?
    Thanks.
     
  2. NICK@NUMBER11

    NICK@NUMBER11 MDL Expert

    Mar 23, 2010
    1,354
    633
    60
    #2 NICK@NUMBER11, Jul 15, 2013
    Last edited by a moderator: Apr 20, 2017
    this update must be injected on a second pass

    06. 06. 2013 07:31 4˙682˙508 X86-all-windows8-rt-kb2821895-x86_efb0ce852eea57be797e403ca9ee32e4c50a77dc.msu

    this is what i did... put the kb2821895in folder called KB all other updates in update folder

    Code:
    Dism.exe /Mount-Wim /WimFile:%~dp0install.wim /Index:1 /MountDir:%~dp0MOUNT
    Dism.exe /image:%~dp0MOUNT /Add-Package /PackagePath:"%~dp0update"
    Dism.exe /image:%~dp0MOUNT /Add-Package /PackagePath:"%~dp0KB"
    dism.exe /image:"e:\inject8\Mount" /get-packages /format:table /English /loglevel:2 /LogPath:"%~dp0DISM.log" >"e:\inject8\Injected_packages.txt"
    Dism.exe /Unmount-Wim /MountDir:%~dp0MOUNT /commit  
    also the following is are not injectable...

    KB2770816, You can install it from setupcomplete.cmd


    start /wait wusa.exe Windows8-RT-KB2770816-x64.msu /quiet /norestart
     
  3. moderate

    moderate MDL Guru

    Aug 31, 2009
    2,648
    2,153
    90
    #3 moderate, Jul 15, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Thanks...

    Could you please answer me one or two questions?
    I. 4th line just lists integrated updates to TXT?

    II. Maybe I am blind, but I can't find "KB2770816" in my listing, what does it do? (I found one non-injectable W8 MSU in past, it was KB2771431 and it looks deprecated right now.)

    III. Please, how I can add setupcomplete.cmd to this procedure (below)? Where to place (non-injectable) MSUs and EXEs to image and where to place setupcomplete.cmd?

    EXEs:
    Code:
    X86-all-windows-kb890830-v5.2_79358bc9812c8ae0618996e742c71fa1ff46ec87.exe
    X86-all-fixiepropschema_252d98cf7ab8957078aa0d0fe12233b7c4f9d713.exe
    X86-all-delmigprov_03685a0057c1c8069ffc536977f8d305cb565ea9.exe
    X86_AMD64-all-silverlight_developer_effbf3bd325ef6b1629d03b4b9b3a1b491f59c5d.exe
    Procedure:
    Code:
    @echo off
    cls
    ver
    md C:\mount
    md C:\winre
    
    DISM /Mount-Wim /WimFile:C:\ISO\sources\boot.wim /index:1 /MountDir:C:\mount
    pause
    dism /image:C:\mount /Add-Package:"C:\CAB\lp.cab"
    pause
    Dism /unmount-WIM /MountDir:C:\mount /Commit
    pause
    cls
    
    DISM /Mount-Wim /WimFile:C:\ISO\sources\boot.wim /index:2 /MountDir:C:\mount
    pause
    dism /image:C:\mount /Add-Package:"C:\CAB\lp.cab"
    pause
    dism /image:C:\mount /Add-Package:"C:\CAB\WinPE-setup_cs-cz.cab"
    pause
    dism /image:C:\mount /Add-Package:"C:\CAB\WinPE-setup-client_cs-cz.cab"
    pause
    dism /image:C:\mount /Gen-LangINI /distribution:C:\mount
    pause
    Dism /unmount-WIM /MountDir:C:\mount /Commit
    pause
    cls
    
    DISM /Mount-Wim /WimFile:C:\ISO\sources\install.wim /index:1 /MountDir:C:\mount
    pause
    dism /image:C:\mount /enable-Feature /Featurename:NetFx3 /Source:C:\ISO\sources\sxs
    pause
    dism /image:C:\mount /enable-Feature /Featurename:TelnetClient /Featurename:SimpleTCP
    pause
    dism /image:C:\mount /Add-Package:"C:\CAB\Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~x86~cs-CZ~6.2.9200.16384.cab"
    pause
    cls
    
    DISM /Mount-Wim /WimFile:C:\mount\Windows\System32\Recovery\winre.wim /index:1 /MountDir:C:\winre
    pause
    dism /image:C:\winre /Add-Package:"C:\CAB\lp.cab"
    pause
    dism /image:C:\winre /Add-Package:"C:\CAB\WinPE-Rejuv_cs-cz.cab"
    pause
    dism /image:C:\winre /Add-Package:"C:\CAB\WinPE-SRT_cs-cz.cab"
    pause
    Dism /unmount-WIM /MountDir:C:\winre /Commit
    pause
    cls
    
    DISM /Export-Image /SourceImageFile:C:\mount\Windows\System32\Recovery\winre.wim /SourceIndex:1 /DestinationImageFile:C:\mount\Windows\System32\Recovery\winre2.wim /Compress:max /Bootable
    pause
    DEL /S /F /Q C:\mount\Windows\System32\Recovery\winre.wim
    REN C:\mount\Windows\System32\Recovery\winre2.wim winre.wim
    pause
    cls
    
    dism /image:C:\mount /Gen-LangINI /Distribution:C:\ISO
    pause
    DISM /image:C:\mount /Add-Package /PackagePath:C:\MSU
    pause
    Dism /Image:C:\mount /Add-Driver /Driver:C:\INF /Recurse
    pause
    Dism /unmount-WIM /MountDir:C:\mount /Commit
    pause
    cls
    
    DISM /Export-Image /SourceImageFile:C:\ISO\sources\install.wim /SourceIndex:1 /DestinationImageFile:C:\ISO\sources\install2.wim /Compress:max
    pause
    DEL /S /F /Q C:\ISO\sources\install.wim
    REN C:\ISO\sources\install2.wim install.wim
    pause
    cls
    
    DISM /Export-Image /SourceImageFile:C:\ISO\sources\boot.wim /SourceIndex:1 /DestinationImageFile:C:\ISO\sources\boot2.wim /Compress:max /Bootable
    pause
    DISM /Export-Image /SourceImageFile:C:\ISO\sources\boot.wim /SourceIndex:2 /DestinationImageFile:C:\ISO\sources\boot2.wim /Compress:max /Bootable
    pause
    DEL /S /F /Q C:\ISO\sources\boot.wim
    REN C:\ISO\sources\boot2.wim boot.wim
    pause
    cls
    
    oscdimg -bC:\ISO\boot\etfsboot.com -h -u2 -m -lwin8 C:\ISO\ C:\win8.iso
    pause
    cls
     
  4. NICK@NUMBER11

    NICK@NUMBER11 MDL Expert

    Mar 23, 2010
    1,354
    633
    60
  5. moderate

    moderate MDL Guru

    Aug 31, 2009
    2,648
    2,153
    90
    #5 moderate, Jul 15, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Thanks again,

    Last question, pls: :D
    Code:
    CD %~dp0
    is (in this case) equal to: (?)
    Code:
    CD %SystemDrive%\Windows\Setup\Scripts
    (so while running .CMD or .BAT it contains Drive:\path to dir from which is that .CMD or .BAT runned)?
    So you can run:
    Code:
    RMDIR /S /Q %~dp0
    too?
    BTW: Is it possible the erase active current directory (without cd.. 1st)? :)

    So I placed both CMD and EXEs into same dir like this, OK?
    Dir.jpg
    (Only "demo" for screenshot, CMD isn't 0 kB of course.) :)
     
  6. moderate

    moderate MDL Guru

    Aug 31, 2009
    2,648
    2,153
    90
    #6 moderate, Jul 15, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    funny :) (I never used these until now) :D

    Code:
    @echo off
    cls
    echo %0
    echo %~d0
    echo %~p0
    echo %~dp0
    pause
    It looks like modified %0 input variable for BAT :D modified with d and p (drive and path (?))... :)
    ...only my theories... :D