DISM . "Complete" window pop up ??? POssible ??

Discussion in 'Scripting' started by tnx, Jan 22, 2014.

  1. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,595
    225
    60
    Hey up my clever MDL folk.

    tn here, messing as usual and messing with making my own custom Win 7, as usual.:rolleyes:

    Imagine your DISM command, one right click and all your tweaks, addons intergrations etc etc are performed.
    Everything goes well and the command window closes, unless a "pause" at the end is added.

    What I was thinking is , once the commands are run and DISM unmounts the image would it be possible for a pop up window to, well, pop up say COMPLETE !

    Do you get what I mean ?

    :cool:

    Cheers..
     
  2. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,773
    1,078
    60
    #2 Mr Jinje, Jan 22, 2014
    Last edited by a moderator: Apr 20, 2017
    Maybe like this from powershell.
     
  3. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,595
    225
    60
    Thanks for that. buttttttttt.

    where do you put such a code ?

    I just tested adding both those codes, one at a time to the bottom of my Mount Image command. No pop up window.

    My scripting skills are woefully bad I am sad to say.

    I will Google about and see what "pops Up"...:rolleyes:
     
  4. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    865
    447
    30
    #4 KNARZ, Jan 22, 2014
    Last edited by a moderator: Apr 20, 2017
    MrJinge is the powershell guy... Sometimes it seems he wants to conquer the world with powershell ;)

    put this code after dism unmount:
    Code:
    msg console /time:20 Your message belongs here
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,595
    225
    60
    #5 tnx, Jan 22, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Yes. that's it...Nice one......

    Cheers...
    I wonder though could the title of the message box be named ? It Just says "Message from my PC....."

    :biggrin:
     
  6. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    865
    447
    30
    afaik nope. you also only have this one line, I wasn't able in the past to create multiple lines with msg.exe - if you want it fency you can still use vbs with MsgBox.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,595
    225
    60
    I see...

    Right, let's make it fancy then !

    So if this code is save as .vbs

    Say "messagebox.vbs"

    How would I make the Mount.cmd point to the .vbs after the image has been mounted.

    Or I have got it all wrong ?

    :confused::confused:
     
  8. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    865
    447
    30
    ähhh.... you're mixing it all.

    Jinje's snipplet is PowerShell = ps1
    I don't recommend ps for so easy tasks.

    search for msgbox and vbs. the result will be one line of code.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,595
    225
    60
    Cheers..

    Will have a good read about...:)
     
  10. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,595
    225
    60
    Got it..

    I have this messagebox.vbs

    And a test mount wim command

    Worked a treat.

    Thank you very much for the help on this one...

    :D :D
     
  11. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    865
    447
    30
    #11 KNARZ, Jan 22, 2014
    Last edited by a moderator: Apr 20, 2017
    to make it bulletproof:
    Code:
    start wscript "%~dp0message box.vbs"
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,595
    225
    60
    #12 tnx, Jan 23, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)

    Cheers for that extra bit, will test it later.:cool: