I need some help with a script I'm trying to write please. Ive been at this for days and Im not really getting anywhere, although I am getting to know cmd a lot better.
ill try describe what my script has to do, i cant write the commands out on the net im afraid
-------------------------------------------------------------------------------------------------------------------
The script passes the command line a command. CMD returns 4 lines of code. on the third line there is the UUID of the last software build. its not a hardware uuid.
I need to get my script to copy this UUID and append it onto the end of the next command my script passes, in order to proceed with the script.
-------------------------------------------------------------------------------------------------------------------
I'm new to this, I have been watching tutorials, and saw that tokens do something similar, so i tried to write a script using them. it doesnt work though, it keeps telling me it needs a unique key, in other words it doesnt have the uuid
------------------------------------------------------------------------------------------------------------
for /F "tokens=16" %%i in ('the command needed to return the lines of code') do set barney=%%i
something unregister -view -uuid %barney%
------------------------------------------------------------------------------------------------------------
alas this is not working. can anyone point me in the right direction please? im thinking something like substring or equivalent, but the uuid starts like 120 characters into the returned output, so both tokens ans substring seem wrong
can anyone help please?
kind regards,
redd .