Add together "Run for Administrator" as AutoHotkey playscripts in Windows 7 or Vista

As approved readers apperceive well, I’m a huge fan of application AutoHotkey to automate my absolute accretion experience… but in Windows 7 and Vista there’s a austere limitation back you can’t run a calligraphy as Administrator by default. This agency that your hotkeys can’t collaborate with windows active in Admin mode… so how do we get about this?
There are three solutions to this problem:
* Completely Disable UAC – Not the best band-aid for aegis purposes, but it works.
* Compile your calligraphy to an executable.
* Hack the anthology and add “Run as Administrator” to the ambience menu.
Compile Calligraphy as Executable
All you accept to do is right-click on the script, accept “Compile Script”…
And now you can run the executable adaptation as administrator:

This isn’t the absolute solution, however. I adapt my calligraphy all the time, so accepting to recompile anniversary time I accomplish an edit… would get annoying.
Manual Registry Hack for AutoHotkey “Run as Administrator”
Open up regedit through the alpha card chase or run box, and again browse bottomward to the afterward key:
HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell
Right-click on “Shell” on the left-hand ancillary and actualize a fresh key alleged “runas”, again actualize a key alleged “Command” beneath it. Again actualize or set the afterward two ethics on the right-hand side, adjusting the aisle if necessary.
Name                                       Value
(Default)                                “C:\Program Files\AutoHotkey\AutoHotkey.exe” “%1″ %*
IsolatedCommand                 “C:\Program Files\AutoHotkey\AutoHotkey.exe” “%1″ %*
The absence key should already be there, aloof charge to set the value.
Now back you right-click on an AutoHotkey script, you’ll see the advantage to Run as Administrator:
Download Anthology Hack
Download, extract, and double-click on the AdminAutoHotkey.reg to access the advice into the registry. There’s additionally a abatement calligraphy included.
Note that this anthology drudge will alone assignment if you installed AutoHotkey into the absence location, contrarily you’ll accept to adapt the paths.
Download AdminAutoHotkey Anthology Hack

Backup/Copy Files that are "busy" or "locked up Windows Command

If you’ve anytime approved to archetype a book that is bound by addition application, you’ve apparently apparent an absurdity bulletin agnate to “The action cannot admission the book because addition action has bound a allocation of the file”. So how do you archetype it anyway?
Since XP, Windows has accurate a technology alleged Volume Shadow Copy, which is acclimated to ability the antecedent versions affection in Vista as able-bodied as System Restore and backups. What it does is booty a acting snapshot of the book or drive, and again acquiesce an appliance to apprehend from the snapshot alike while added applications are accessing or modifying the file.
What we can do is use a command band account alleged HoboCopy that utilizes this account to archetype the file.
Understanding the Prerequisites
HoboCopy and best added advancement utilities accomplish use of two casework in Windows, and you’ll charge to verify that these casework are not disabled:
* Volume Shadow Copy
* Microsoft Software Shadow Archetype Provider
They can be larboard as Manual startup, so they don’t charge to be active all the time. Hobocopy will alpha the two casework automatically aback needed, and the Volume Shadow Archetype account will be angry aback off afterwards it’s done.
Using HoboCopy to Backup/Copy a Distinct File
The syntax is a little weird, because HoboCopy is absolutely meant to be acclimated for abetment up an absolute set of folders. We can use it to advancement a distinct book by casual in the filename altercation at the end.
Note: on Windows Vista you will charge to barrage an Administrator approach command alert by right-clicking on the Command alert in the alpha card and allotment Run as Administrator.
Syntax:
hobocopy c:\directoryname\ d:\backupdirectory\
For example, I appetite to advancement my c:\users\geek\mail\outlook.pst book to d:\backups\outlook.pst. Here’s the syntax that I’d use:
C:\> hobocopy c:\users\geek\mail\ d:\backups\ Outlook.pst
HoboCopy (c) 2006 Wangdera Corporation. hobocopy@wangdera.com
Starting a abounding archetype from c:\users\geek\mail to d:\backups\
Affected directory
Advancement auspiciously completed.
Advancement started at 2008-03-09 01:57:28, completed at 2008-03-09 01:58:39.
1 files (606.45 MB, 1 directories) copied, 7 files skipped
Using HoboCopy to Advancement an Absolute Directory
A abundant added advantageous assignment would be to advancement my absolute User folder, apparently to an alien adamantine drive for safekeeping. For this, we’ll appetite to add a brace of command-line arguments.
/full Copy all files
/skipdenied Ignore any admission denied letters because of permission errors.
/r Copy recursively
/y Don’t prompt, aloof archetype everything
Syntax:
hobocopy /full /skipdenied /y /r c:\directoryname\ d:\backupdirectory\
Let’s go with the aforementioned example, I appetite to advancement my absolute user agenda to d:\backups\, so I’d use this command:
hobocopy /full /skipdenied /y /r c:\users\geek\ d:\backups\
This command will acceptable booty a actual continued time to complete, so you ability appetite to booty a nap or something. At the end you should accept a about absolute archetype of the directory… if there are any permission errors you’ll be alerted to files that didn’t copy. Realistically any files in your user agenda shouldn’t accept this problem.
Using HoboCopy to Incrementally Advancement a Drive
Hobocopy additionally supports abetment up files incrementally, so it will alone archetype the files that accept afflicted back the aftermost backup. This works analogously to utilities like rsync, except hobocopy food the aftermost advancement date in a book that you charge to specify on the command line.
/statefile=filename This banderole specifies the book that contains the aftermost advancement information.
/incremental Only archetype files that accept afflicted back the aftermost abounding copy.
Syntax:
hobocopy /incremental /statefile=filename /y /r c:\directoryname\ d:\backupdirectory\
Example:
hobocopy /incremental /statefile=d:\lastbackup.dat /y /r c:\users\geek\ d:\backups\
The aboriginal time that you run this command you will charge to use /full instead of /incremental, or abroad you will get an absurdity because the accompaniment book hasn’t been created yet. After that you can run the incremental advancement with the /incremental switch.
This would be an accomplished way to automatically advancement a set of folders as allotment of a appointed task.
Download HoboCopy from sourceforge.net