Jump to content

Administrative user doesn’t write registry settings in HKEY_CURRENT_US


Recommended Posts

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.php

http://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/#entry1089363

giving 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 :unsure:) 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


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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...