Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Run Commands - Create


Run Commands - Create

How to Create Custom Run Commands
Published by Capt.Jack Sparrow
26 May 2010
Published by

How to Create Custom Run Commands


Note   Note
Using the Run / Start Search command in Windows you can use certain pre-defined commands to open up applications like we open MSCONFIG etc.


Here are the Steps


1. Go to Start under Start Search type in Regedit and Hit Enter



warning   Warning
Ensure to make a backup before you modify any Registry Entry



2.Follow this Link for help in backing up Registry :- Registry - Backup and Restore

3. Then go to

Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths

-reg1.png


4. In the left panel, right click this App Paths key and choose New | Key and Type the Application name

Note: Don't forget to type the extension as well


For Example: CCleaner.exe


-reg2.png


5. In the right panel, double click on the Default string value and in the Value and in the box which opens, enter the path of the executable i.e. C:\Program Files\CCleaner\CCleaner.exe


-reg3.png


6. Now in the right side empty space again Right click | Select New | String Value. Name the key as Path. Double click and give it the value as the folder path i.e. C:\Program Files\CCleaner\


-reg4.png



7. Now you can close the Registry Editor and from Start | Run type in Application name i.e. CCleaner it would open the Application.





Hope this helps,

Captain



26 May 2010   #1
Loki

Windows 7 Ultimate x64
 
 

Nice.

You could also add the path the the Environment Variables: Path, if you'd rather not mess with the Registry directly.


My System SpecsSystem Spec
26 May 2010   #2
Bare Foot Kid
Microsoft MVP

W 7 64-bit Ultimate
 
 

Looks good Cap'n!
My System SpecsSystem Spec
26 May 2010   #3
Capt.Jack Sparrow

Windows 7 Ultimate - 64-bit | Windows 8 Pro - 64-bit
 
 

Thank You Ted !!
My System SpecsSystem Spec
.

26 May 2010   #4
CarlTR6

Windows 7 Ultimate 32 bit
 
 

Very good, Captain - and useful. Good job.
My System SpecsSystem Spec
26 May 2010   #5
Capt.Jack Sparrow

Windows 7 Ultimate - 64-bit | Windows 8 Pro - 64-bit
 
 

Thanks Carl !!
My System SpecsSystem Spec
26 May 2010   #6
zzz2496

Windows7 Ultimate 64bit
 
 

Very good, Capt'n... Btw, as Loki said earlier, there is another way to do this. All you need to do is add the "Path" of the corresponding program to "Path" environment variable, it's under "Advanced system settings"->"Environment Variables" button.

zzz2496
My System SpecsSystem Spec
27 May 2010   #7
kucing13

 

another tweak.!!. thanks Capt .
My System SpecsSystem Spec
27 May 2010   #8
Kari

Microsoft Community Contributor Award Recipient

 

Nice work, Mr. Sparrow!
My System SpecsSystem Spec
27 May 2010   #9
Capt.Jack Sparrow

Windows 7 Ultimate - 64-bit | Windows 8 Pro - 64-bit
 
 

Quote   Quote: Originally Posted by zzz2496 View Post
Very good, Capt'n... Btw, as Loki said earlier, there is another way to do this. All you need to do is add the "Path" of the corresponding program to "Path" environment variable, it's under "Advanced system settings"->"Environment Variables" button.

zzz2496
Yes we can do it that way. Also another easy way is to just Create a shortcut of the application or program. Rename it to any short name and place this shortcut in the Windows folder.
My System SpecsSystem Spec
Comment

 Run Commands - Create




Tutorial Tools




Similar help and support threads
Windows 7 Tutorial Category
Batch Files - Create a Menu to Execute Commands
How to Use a Batch File to Create a Command Prompt Menu to Execute Commands This tutorial shows the process one goes through when creating a batch file that opens a command prompt menu allowing you to launch commands, programs and more. I will only be executing programs in this tutorial,...
Tutorials
Run Commands for Windows 7
A List of Run Commands for Windows 7 I'm posting a list of Run Commands every PowerUser or Administrator should know in bold below. So if you know anymore new ones, Please Post them here hope this helps! :geek:Windows logo key + R Administrative Tools Administrative Tools = control...
Tutorials
Shortcut with 2 commands
Is it possible to run more than one batch file command in a shortcut? I have tried a couple of thins and they did not work. Example: cmd /c start program cmd /c start another program
General Discussion
How do I create my own custom commands in Windows 7
Hello Everyone, I want to create a utility software where i can create my own custom commands like copy, rename, move, delete etc. But i don't have any idea how should i proceed so please help me in this regard that how should i proceed further. Which language i should use to create it? OS...
General Discussion
Definitions of Commands
I often wondered what difference , if any , there is between the following commands: FORMAT WIPE DELETE with reference to hard drives.
General Discussion
Bat commands..
Okay im trying to make a mini-fool for my friend :D And i want to my friend donot see the bat file Is this the code to he cant see it? attrib +h %0 Thanks. - kuchiyo
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 00:00.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App