By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!copy https://jpsoft.com/downloads/v32/tcmd.exe
tcmd.exe /qn
@SETLOCAL
@ECHO OFF
:: File: winget.btm
:: Created: 2024-09-09
:: _4ver: 32.10
:: _winver: 10.0
iff %_x64 eq 1 then
iff %_admin eq 1 then
iff %_elevated eq 1 then
:: NEXT SENTENCE
else
echo Note that this .BTM was tested on a 64-bit version of Windows,
echo as Administrator,
echo from an elevated process.
echo.
echo You are running the following;
echo _x64: 1
echo _admin: 1
echo _elevated: 1
pause
endiff
endiff
endiff
:: Drive R:\ is a 2GB RAMDrive
if isdir r:\temp set temp=r:\temp
iff %1 eq edit then
tcedit %_batchname
quit
endiff
iff %1 eq view then
view %_batchname
quit
endiff
set Show=N
set Source=https://jpsoft.com/downloads/v32/tcmd.exe
iff %1 eq show .and. %2 eq tcmd then
if exist tcmd.exe del /q tcmd.exe
echo Copying %Source
copy /g %Source
Gosub Show
set Show=Y
endiff
iff %1 eq install .and. %2 eq tcmd then
if exist tcmd.exe del /q tcmd.exe
echo Copying %Source
copy /g %Source
Gosub Show
set YorN=N
input /k"YyNn" Install Take Command (Y/N): %%YorN
iff %YorN eq Y then
echo Silently installing Take Command
::tcmd.exe /qn
endiff
if exist tcmd.exe dir tcmd.exe
else
iff %Show eq Y then
:: NEXT SENTENCE
else
winget.exe %$
endiff
ENDLOCAL
quit
:Show
echo Company Name : %@verinfo[tcmd.exe,CompanyName]
echo File Description : %@verinfo[tcmd.exe,FileDescription]
echo File Version : %@verinfo[tcmd.exe,FileVersion]
echo Internal Name : %@verinfo[tcmd.exe,InternalName]
echo Legal Copyright : %@verinfo[tcmd.exe,LegalCopyright]
echo Legal Trademarks : %@verinfo[tcmd.exe,LegalTrademarks]
echo Original Filename : %@verinfo[tcmd.exe,OriginalFilename]
echo Product Name : %@verinfo[tcmd.exe,ProductName]
echo Product Version : %@verinfo[tcmd.exe,ProductVersion]
echo Build : %@verinfo[tcmd.exe,Build]
Return
R:\>winget show tcmd
Copying https://jpsoft.com/downloads/v32/tcmd.exe
https://jpsoft.com/downloads/v32/tcmd.exe => R:\tcmd.exe
1 file copied
Company Name : JP Software
File Description : Take Command 32 Installer
File Version : 32.10.21.0
Internal Name : tcmd
Legal Copyright : Copyright (C) 2024 JP Software
Legal Trademarks :
Original Filename : tcmd.exe
Product Name : Take Command 32
Product Version : 32.10.21.0
Build :
R:\>winget install tcmd
Copying https://jpsoft.com/downloads/v32/tcmd.exe
https://jpsoft.com/downloads/v32/tcmd.exe => R:\tcmd.exe
1 file copied
Company Name : JP Software
File Description : Take Command 32 Installer
File Version : 32.10.21.0
Internal Name : tcmd
Legal Copyright : Copyright (C) 2024 JP Software
Legal Trademarks :
Original Filename : tcmd.exe
Product Name : Take Command 32
Product Version : 32.10.21.0
Build :
Install Take Command (Y/N):y
Silently installing Take Command
Volume in drive R is unlabeled Serial number is 2874:bb5f
Directory of R:\tcmd.exe
2024-09-09 11:16 78,195,584 tcmd.exe
::tcmd.exe /qn
tcmd.exe /qn
I have two people above saying it's possible, but neither have provided an example invocation that works.
While I appreciate claims that an answer to my problem exists, I'm actually looking for the actual answer, and the above claims don't actually bring me any closer to it
i.e. what is the msiexec command? how is it installed in sandbox?
I'm looking for a command that downloads it and installs it, like winget. Maybe that part wasn't clear.