Hi all. tnx bored again so having a mess about. Been creating a very simple .cmd to show a couple of messages while an install.wim is being mounted. Also a simple .vbs to run the .cmd without the command window showing, so all I see are the message boxes. It works quite well but there is one thing bugging me. Now I am not confessing to be a good scripter what so ever so all I do is very simple. Bare this in mind... When I run the mount.cmd a message pops up to tell me to wait, install.wim is being mounted. But the message box as an awful looking icon attached to it. see pic. What I would like to know is it possible to have a different custom icon attached to it. Summet like this maybe, Any thoughts, you clever lot... Bet I'm barking up the wrong tree, as usual
Unfortunately the only ways I think you could affect the icon is to either use something other than wsh/vbscript, such as powershell or to perferably create a .hta based gui. Here is a VBScript example which will use PowerShell to create the MessageBox: Code: Set objShell = CreateObject("Wscript.Shell") sMsg = "'Your install.wim is being mounted; Please Wait...'" sTTL = "'Mounting Wim'" objShell.Run("PowerShell -c " & _ """[System.Reflection.Assembly]::LoadWithPartialName" & _ "('System.Windows.Forms')|Out-Null; $A=" & _ "[System.Windows.Forms.MessageBox]::Show(" & sMsg &"," & sTTL & ",0,64);"""),0 This doesn't provide you with a custom icon, but it should at least use the powershell icon in your taskbar. Without seeing your entire code, there's little else I can suggest!
Cheers for that. Funny you talk about making my own GUI. I have been messing about with Autoplay Media Studio and I have just the other day installed Visual Studio 2013 but not realy played with it yet. This just for my own amusement but I would love to learn how to have a progress bar show the time it takes for an install.wim to be mounted. I will use you code later on when I get more time.