Forum posts for regedit.exe

How can I run the regedit.exe from a Perl script on Windows 2008 Server?

I have yet another subtle problem on Windows :(

The following one-line perl script doesn't work:


perl -e 'system('regedit.exe /s C:my.reg');'


It really runs regedit.exe tool (I'm sure since I tried to run it w/o '/s' and saw confirmation dialogs), but it doesn't create a key in the registry.

I tried to run

regedit.exe /s C:my.reg

in from windows shell (cmd.exe) and it works fine.

The original command works fine on Windows XP, but doesn't work on 2008 server.
So I suspect that this is system-related issue.

View complete forum thread with replies

Other posts related to regedit.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

.abc branch in regedit.exe
How does regedit.exe create empty binary values
Why I can't see 'wow6432node' when using process.start(“regedit.exe”)?
OpenSubKey() returns null for a registry key that I can see in regedit.exe
How to detect Java is installed via REGEDIT.exe from a batch file?
How can I run the regedit.exe from a Perl script on Windows 2008 Server?
Why does registryKey.GetValue still read the old value after I changed the rgistry with rege…

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.