How to run any program using NOTEPAD

How to run any program using NOTEPAD

 

This time I will show you how to run any program using notepad. Here’s an example command: @echo on start ms-settings:datausage start ccleaner.exe start mspaint.exe Save it as a .bat file. It should also work with Windows 10 UWP apps.

 

Set wshshell = Wscript.CreateObject(“Wscript.Shell”)

Wshshell.run “Notepad”

wscript.sleep 100

wshshell.sendkeys “H”

wscript.sleep 100

wshshell.sendkeys “E”

wscript.sleep 100

wshshell.sendkeys “L”

wscript.sleep 100

wshshell.sendkeys “L”

wscript.sleep 100

wshshell.sendkeys “O”

wscript.sleep 100

wshshell.sendkeys “T”

wscript.sleep 100

wshshell.sendkeys “O”

wscript.sleep 100

wshshell.sendkeys “M ”

wscript.sleep 100

wshshell.sendkeys “Y”

wscript.sleep 100

wshshell.sendkeys “C”

wscript.sleep 100

wshshell.sendkeys “H ”

wscript.sleep 100

wshshell.sendkeys “N”

wscript.sleep 100

wshshell.sendkeys “N”

wscript.sleep 100

wshshell.sendkeys “E”

wscript.sleep 100

wshshell.sendkeys “L”

wscript.sleep 100

wshshell.sendkeys “T”

wscript.sleep 100

wshshell.sendkeys “E”

wscript.sleep 100

wshshell.sendkeys “H ”

wscript.sleep 100

wshshell.sendkeys “P ”

wscript.sleep 100

wshshell.sendkeys “R”

wscript.sleep 100

wshshell.sendkeys “O”

wscript.sleep 100

wshshell.sendkeys “A”

wscript.sleep 100

wshshell.sendkeys “D”

wscript.sleep 100

wscript.sleep 100

wshshell.sendkeys “V”

Leave a Reply

%d bloggers like this: