Hi guys.
Working on a Windows 7 image mount project.
Adding drivers, updates and the like into a Win 7 install.wim file.
Usually I just use a simple .cmd file
Folder layout is
C
ISM
C:\DISM\install.wim ( where the install.wim file will go )
C:\DISM\mount ( where the image will be mounted to )
right clicking on my .cmd file mounts the image a treat.
I am having problems with trying to run the DISM.exe using
sCmdLineArgs
Shell.Execute
------------------------------------------
With a heap load of help from Ulrich I got my extract .iso image working using
-----------------------------------------------------------------------------------------------
With that in mind I have been trying but failing miserably to amend it to fit my DISM command.
I just don't know which bit goes where. Tried all sorts of connotations and nowt works.
When run the command window pops up, it will show an error but does not stay on screen long enough to see what the error is.
Two things I need help with.
How do I make the command window stay open till I close it to see the error. Or make the window tell me what the error is via a text doc or another way.
Can anybody see where I am going wrong with my script\code and how to amend it.
My last failed attempt was
cheers..



Working on a Windows 7 image mount project.
Adding drivers, updates and the like into a Win 7 install.wim file.
Usually I just use a simple .cmd file
dism /mount-wim /wimfile:%~dp0install.wim\install.wim /index:1 /mountdir:%~dp0mount
pause
pause
C

C:\DISM\install.wim ( where the install.wim file will go )
C:\DISM\mount ( where the image will be mounted to )
right clicking on my .cmd file mounts the image a treat.
I am having problems with trying to run the DISM.exe using
sCmdLineArgs
Shell.Execute
------------------------------------------
With a heap load of help from Ulrich I got my extract .iso image working using
isofound = Dialog.FileBrowse(true, "Locate File", _DesktopFolder, "iso images (*.iso)|*.iso|", "", "iso", false, true);local sCmdLineArgs = "x \"" .. isofound[1] .. "\" -y -o\"" .. "C:\\DISM\\7zip\\files" .. "\"";
Shell.Execute("C:\\DISM\\7zip\\7z.exe", "open", sCmdLineArgs, "", 0, true)
Shell.Execute("C:\\DISM\\7zip\\7z.exe", "open", sCmdLineArgs, "", 0, true)
With that in mind I have been trying but failing miserably to amend it to fit my DISM command.
I just don't know which bit goes where. Tried all sorts of connotations and nowt works.
When run the command window pops up, it will show an error but does not stay on screen long enough to see what the error is.
Two things I need help with.
How do I make the command window stay open till I close it to see the error. Or make the window tell me what the error is via a text doc or another way.
Can anybody see where I am going wrong with my script\code and how to amend it.
My last failed attempt was
local sCmdLineArgs = "mount-wim" .. "Wimfile:C:\\DISM\\Install.wim\\install.wim //index:1 //mountdir:C:\\DISM\\mount" .. "\"";
Shell.Execute("Dism.exe", "open", sCmdLineArgs, "", SW_SHOWNORMAL, false)
Shell.Execute("Dism.exe", "open", sCmdLineArgs, "", SW_SHOWNORMAL, false)
cheers..




Comment