-1
I wonder if it is possible and how to insert an MSDOS command line inside a vbscript.
I have this command line to get the ID of the Anydesk program, available on the Anydesk website
@echo off
for /f "delims=" %%i in ('"C:\Program Files (x86)\AnyDesk\AnyDesk.exe" --get-id') do set CID=%%i
echo AnyDesk ID is = %CID%
pause
That generates this result at the command prompt:
I wonder if it is possible to run or convert to vbscript, the purpose is to use the function "msgbox" to capture the ID that the command in msdos captures and displays at the prompt, having a result similar to this:
Thanks in advance
This answers your question? How to run msdos command inside a vbscript
– tvdias