kali Posted November 24, 2014 Author Share Posted November 24, 2014 Actually there is nothing particularly complex in the above batch. It is a rather basic use of FOR . See these pages:http://www.robvanderwoude.com/ntfor.phphttp://www.robvanderwoude.com/ntfortokens.php The first FOR loop simply runs through all the items of the list, which I created by simply replacing "=" with = in the list you posted on #23:http://www.msfn.org/board/topic/173033-administrative-user-doesn’t-write-registry-settings-in-hkey-current-user/#entry1089363giving to the %%A variable the value of items in the list.The second FOR loop uses the /F switch and tokens and delims to separate the first part (name) from the second part (value), assigning them to the variable %%B and %%C. This is a slightly more complex (or simplified ) version of the same batch, this time using a single FOR /F loop and some piping: Thanks a lot. I'm trying. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now