Skip to content

Instantly share code, notes, and snippets.

@rickdaalhuizen90
Created March 2, 2017 10:50
Show Gist options
  • Save rickdaalhuizen90/527962e8946f8473c287ca2185a55707 to your computer and use it in GitHub Desktop.
Save rickdaalhuizen90/527962e8946f8473c287ca2185a55707 to your computer and use it in GitHub Desktop.
Coolest Notepad Tricks and Hacks for Your PC
' Fake Windows Error Message
X=Msgbox(“Press OK and Windows will restart now.”,0+16,“There is a serious problem in your system”)
@echo off
REM The Matrix Effect
color 02
:start
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto start
'Pop out the CD Drive continuously
Set oWMP = CreateObject(“WMPlayer.OCX.7?)
Set colCDROMs = oWMP.cdromCollection
do
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count – 1
colCDROMs.Item(i).Eject
Next
For i = 0 to colCDROMs.Count – 1
colCDROMs.Item(i).Eject
Next
End If
wscript.sleep 5000
loop
@ECHO OFF
REM Password-protected Folder using Notepad
title Folder Private
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p “cho=>”
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Private “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p “pass=>”
if NOT %pass%==fossBytes goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
'Toggle Capslock
Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{CAPSLOCK}”
loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment