FFS, why is this DOS command not working? (regini)

Soldato
Joined
23 Nov 2004
Posts
3,792
Hi,

I'm trying to write a batch file, and part of its job is to ammend the permissions of a few registry keys.

Now im using the standard regini command. running regini /? doesn't return anything so i've worked out the syntax from Google. See below my command:

C:\>regini \Registry\MACHINE\SYSTEM\CurrentControlSet\Enum\SW\{2f412ab5-ed3a-4590-ab24-b0ce2aa77d3c} [7]

it doesn't output a sucess / failure message either bu an echo %errorlevel% returns 1 and the registry keys permissions haven't changed.

What am I doing wrong? It says in the below link you have to put the path in a seperate file but surely you should be able to just run it as a command from a cmd prompt?

http://support.microsoft.com/kb/264584
 
Tried encompassing in "s?

The string you pasted has a space in it, although this might just be because you pasted it in funnily and not that there is actually a space.

are you running the command prompt/BAT file with elevated "Run as administrator" privileges?
 
Last edited:
Back
Top Bottom