0
votes
1answer
31 views

How to know which file was right-clicked on?

I'm trying to write a script and add it to the right click context menu. To add the items to the menu, I've used this: Windows: How to add batch-script action to Right Click menu, except instead of ...
0
votes
1answer
47 views

How to define access to just the System event log on Windows 2008 Server

I want to restrict administrator user access to the Security event log, is there a way to do it? I was following this article, but so far no luck.
3
votes
3answers
2k views

reg query; Windows 7 vs Windows XP

I can run the following reg query command in Windows 7 and get the following results: command- Reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s /f "EMC Avamar for Windows" ...
0
votes
0answers
23 views

file association batch file windows 8 [duplicate]

I'm trying to create a batch file that will associate .myroom file extension to myroom.exe program in windows 8 so whenever user clicks on a .myroom file, it will open it using myroom.exe software. ...
2
votes
1answer
503 views

How can I add a value to the registry via command line without a .REG file?

I have a need to add my external IP address to the Windows registry on a scheduled basis, and I want to do this with a bat/cmd file to automate the process. I was able to use the advice from this ...
4
votes
1answer
3k views

Remove registry keys using reg.exe in a batch script

I've written this little batch script to help me auto-clean the registries of 300+ identical PC's of some very specific registry keys. It works right up to the point of passing the key variable to ...
0
votes
1answer
10k views

Add registry key via batchfile

I'm trying to create a registry key with a batch file. I really need to be able to do this via a batch rather than a VBscript or .reg file. So far by using this guide, I've come up with this. but ...
1
vote
1answer
2k views

Batch file in right click menu

I'm making a batch file that is going to encrypt information. I made it so when I right click on the object and click on the "test" button it runs the batch file. In regedit I added ...
0
votes
1answer
9k views

How can I refresh my PATH variable from the registry, without a reboot, logoff, or restarting explorer?

I've made some changes to the %PATH% variable in the registry. Now, I'd like to see those changes applied without having to go so far as a logoff, reboot, or reload of Explorer. Is there a way this ...
2
votes
7answers
5k views

Why do I have to import .reg file from RegEdit in Win7 and not from .bat file?

I have a .bat file that makes a call to a .reg file (something like: regedit mytest.reg). I run the .bat file as administrator but I get an error: "Cannot import mytest.reg: Error opening the file. ...