This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D "%USERPROFILE%\Wallpaper.bmp" | |
REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle /T REG_SZ /F /D 0 | |
REG ADD "HKCU\Control Panel\Desktop" /V TileWallpaper /T REG_SZ /F /D 0 | |
start /MIN /B %SystemRoot%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
/* | |
We define WinMain to simply run the user's command line; this is nothing they | |
couldn't already do via Windows+Run. It is useful if you want to prevent any | |
console windows from appearing on the user's desktop. | |
We wait for the process to exit and return the exit code to the caller. | |
@param hInstance Not used; o/s module handle for current process. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
; For Windows 7 use ChangeFileAssociationV5.reg instead, this version only | |
; works for older versions of REGEDIT | |
; | |
[HKEY_CLASSES_ROOT\.] | |
@="Notepad++_file" | |
; Note: Notepad++ doesn't make the "Notepad++_file" registry key until you run | |
; as Administrator and manually add at least one other file association. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Launch an http server on localhost using a random port to serve files from | |
# the current working folder. Automatically open a web browser pointed at the | |
# root url as a convenience. | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
from BaseHTTPServer import HTTPServer | |
import webbrowser | |
# Create a localhost server, specify port 0 so it will pick one for us. | |
httpd = HTTPServer(("localhost", 0), SimpleHTTPRequestHandler) |