|Thank you for coming back to report your success. The For loop is pretty basic, here's a wee bit of a breakdown:|
Your file consists of just one line
SNMPv2-SMI::enterprises.306126.96.36.199.1.1.0 = STRING: "0.0"
Viewing that shows the line can be extracted into four variables using the space(s) as the best delimiter.
Space is one of the default Delims(deliminators) so there is not need to specify it.
Tokens=1-3* means that variable %%1 will consist of the line from the left to the first space SNMPv2-SMI::enterprises.306188.8.131.52.1.1.0
Variable %%2 will consists of the line from the first to second space
Variable %%3 will consist of the line from the second to third space
Variable %%4 will contain the rest of the line which is what you want
Echoing %%4 displays the result.
My command of English is not so good, hope the above makes sense to you.
There are many many good sources of batch scripting advice, both online and in printed forms. I tend to recommend the online sites of Rob Van Der Woude such as http://www.robvanderwoude.com/batch... and http://www.robvanderwoude.com/ntfor...
Please note that I have not affiliation with Rob Van Der Woude except as a user of the information provided by him.
Good luck, don't hesitate to come back with any queries which you might have, some very good scripting gurus surf these C.Net forums. You can also enter the command /? at the command prompt to display the help screen so that For /? will display lots of info on the For command.
Please come back & tell us if your problem is resolved.