TC button and DISM

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
WebmasterMOK
Junior Member
Junior Member
Posts: 2
Joined: 2018-02-28, 08:07 UTC

TC button and DISM

Post by *WebmasterMOK »

I need help. I've try to solve problem myself but without any good result.
I want to add button to TC and use a dism command in it:

dism.exe /capture-image /capturedir:c:\ /imagefile:d:\obraz.wim /compress:maximum /name:"C copy"

Simply:
(in command) dism.exe
(in parameters) /capture-image /capturedir:%P:\ /imagefile:%T:\obraz.wim /compress:maximum /name:"C copy" or "%P" and "%t" don't work at all.

Is it even possible to get :?:

BR
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe there are spaces in the parameters? Try putting a ? in front of the paramters - then TC will show a dialog box with the resolved parameters before executing the command.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

/capture-image /capturedir:%P:\ /imagefile:%T:\obraz.wim /compress:maximum /name:"C copy"
Try this in stead:

/capture-image /capturedir:%P: /imagefile:%Tobraz.wim /compress:maximum /name:"C copy"

%P and %T inserts the backslash itself - so don't write one as well in the parameter.
Last edited by petermad on 2018-03-03, 09:59 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
WebmasterMOK
Junior Member
Junior Member
Posts: 2
Joined: 2018-02-28, 08:07 UTC

Post by *WebmasterMOK »

@ all
Everything was correct, I should run this button as administrator. Works great. One more time thx.
Correct constitution is: ? /capture-image /capturedir:%P /imagefile:%Tobraz.wim /compress:maximum /name:"copy C" :D
Post Reply