I have windows 7 64-bit, I've been trying to figure out how to set up a bat file to run with admin privilege so my wife can back up her computer by just clicking on it. It's been a journey.
I'm a programmer, so I know something of how easy this should have been.
My current problem is that I've somehow messed up the behavior of double-clicking on a bat file in Win explorer. It opens it in my own editor (what I use instead of notepad). At one time I was trying to set it so that choosing 'edit' on the file would do that, but I didn't want it to be default. Now I can't figure out how to go back.
I've been in my now backed-up registry to HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.bat and deleted it and everything under it. That got me past the point where double-clicking a bat file in explorer started the CMD prompt but didn't run the bat file.
What I am hoping to do is restore the default behavior and create a shortcut, then give the shortcut admin priv so that it performs the backup correctly. The tricky part of that is that it cannot live on the desktop; I would really like it if it could be on the start menu, but I tried creating a shortcut, giving it priv, and then putting it on the start menu, but it lost the priv when I did that. Next I'll try putting it on the start menu and THEN giving it priv, once I get past this current thing. But if someone has a comment to make on that, especially if it's in addition to fixing my current default problems, that'd be great.
No comments:
Post a Comment