This is embarrassing but I've spent so many hours on it I feel I have no choice. 
I'm not real keen with Win 7 yet and I've done this with earlier os's without this problem.
Can't figure out why it's not working here, and I see many others having similar questions.
OS = Win7 Pro 32 bit.
I'm used to keyboard\cmd prompt so it's not an issue for me, but I'm putting together a system
for a friend who isn't that 'cmd prompt savvy'.
I need to create simple batch files for deleting and importing reg value (hklm\software\xxxx\run).
The program I'm trying to manage has no way to prevent auto running within it's gui
so I have allow the user to do this manually.
It's a FW so it's important to be able to manage it for troubleshooting etc.
It can be temporarily disabled, but it's important to prevent it from auto running as well.
When I run either 'reg.exe import autorun.reg', noautorun.reg' OR 'regedit /s autorun.reg' etc.,
via command line from the folder the reg files are in, it works perfectly every time.
But no matter how I create the bat files, they run with no prompt, no error(s) and do nothing.
Even when run as admin.
Can someone please explain what I am missing here?
I've read in a very dated thread here where someone claimed it worked by adding:
'rundll32.exe USER32.DLL, UpdatePerUserSysetmParameters ,1 ,True'
but I don't recall ever having to do this with a simple reg file import or value deletion.
I realize that Mark R's Autoruns would do the trick, but I need it to be a one click solution,
so it's very simple for user.
Thanks very much for any help on this!

I'm not real keen with Win 7 yet and I've done this with earlier os's without this problem.
Can't figure out why it's not working here, and I see many others having similar questions.
OS = Win7 Pro 32 bit.
I'm used to keyboard\cmd prompt so it's not an issue for me, but I'm putting together a system
for a friend who isn't that 'cmd prompt savvy'.
I need to create simple batch files for deleting and importing reg value (hklm\software\xxxx\run).
The program I'm trying to manage has no way to prevent auto running within it's gui
so I have allow the user to do this manually.
It's a FW so it's important to be able to manage it for troubleshooting etc.
It can be temporarily disabled, but it's important to prevent it from auto running as well.
When I run either 'reg.exe import autorun.reg', noautorun.reg' OR 'regedit /s autorun.reg' etc.,
via command line from the folder the reg files are in, it works perfectly every time.
But no matter how I create the bat files, they run with no prompt, no error(s) and do nothing.
Even when run as admin.
Can someone please explain what I am missing here?
I've read in a very dated thread here where someone claimed it worked by adding:
'rundll32.exe USER32.DLL, UpdatePerUserSysetmParameters ,1 ,True'
but I don't recall ever having to do this with a simple reg file import or value deletion.
I realize that Mark R's Autoruns would do the trick, but I need it to be a one click solution,
so it's very simple for user.
Thanks very much for any help on this!
My Computer
At a glance
Win 7 Pro 32bit - XP & W2K3 Server - Linuxi716 GBRadeon HD 7800 Series
- Computer type
- PC/Desktop
- Computer Manufacturer/Model Number
- ASUS - Home Built
- OS
- Win 7 Pro 32bit - XP & W2K3 Server - Linux
- CPU
- i7
- Motherboard
- Intel
- Memory
- 16 GB
- Graphics Card(s)
- Radeon HD 7800 Series
- Sound Card
- Asus Xonar
- Monitor(s) Displays
- Asus
- Hard Drives
- SSD - Samsung EVO 1 TB + WD 2 TB x 4
- PSU
- EVGA G3 1000
- Case
- Thermaltake Level 10 GT
- Cooling
- Lots
- Keyboard
- Logitech
- Mouse
- MX Master 3
- Internet Speed
- 1GB
- Antivirus
- Never
- Browser
- Pale Moon & Ungoogled Chromium, Brave etc.
- Other Info
- I thank you for this impressive forum