Quick launch programs(start service) on windows 2016-03-26 21:55
When you want launch a programs on windows open directory and find the exe
file then double click it. It is too slow. Today I will show you how to open programs or start service on windows quickly. You do not need open deep directory to find exe
file.
Add a shortcut directory in your environment.
Let's make a directory(like D:\shortcut) as shortcut. Right click
My computer
->Property
->Advanced system settings
->Environment variables
. FindPath
inSystem variables
add your shortcut directory in the end. In my computer like following.\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin;D:\shortcut
Create shortcut for your programs.
If you want quickly launch a program(like IDEA) find the
IDEA.exe
in the install directory. Create a shortcut for it and rename it what you like(I rename it asidea
). Move this shortcut to your shortcut directory(D:\shortcut).Quickly launch the program.
Press Windows+R, you can see
Run
windows then pressidea
-> Enter. Now theIDEA
will start. Now you can add the programs you like in shortcut directory and rename them you can remember easily. Next time you want launch just need Windows + R and press a name of programs.Quickly start(stop) a service.
Let's make
PostgreSQL
as example. Find the service name inService
(the name ofPostgreSQL
service in my computer ispostgresql-x64-9.3
). Create a text file and add following.sc stop "postgresql-x64-9.3" || sc start "postgresql-x64-9.3"
Save this file as
pg.bat
and move it to your shortcut directory. Now you cantoggle
this service as step 3. Windows + R -> presspg
-> Enter. Now thePostgreSQL
service run. If you do this(Windows + R -> presspg
-> Enter) a second time the service will stop.