Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Bind key to start program?
Closed Thread
Old 08-08-2006, 05:31 AM   #1 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,683

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Bind key to start program?

I would like to bind a keyboard key to start a Program. I know you can do this with macros, but I don't want macros. I was thinking a simple batch file or something.

Can anyone make me a batch file to open a program?

For simplicities sake, lets say I want to bind key "A" to open... Notepad.

I'd really appreciate it, thanks.
__________________

Need website help? PM me!
CrazeD is offline  
Old 08-08-2006, 11:03 AM   #2 (permalink)
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default

Quote:
Can anyone make me a batch file to open a program?
No, we're not here to do your work, but if you have specific questions about how to do it yourself then you should post them.

About key binding, this functionality is built into Windows. Right click on the executable and select properties. There is an option to set a shortcut key. If you require more help, consult your Windows help file in the start menu.
jaeusm is offline  
Old 08-08-2006, 05:14 PM   #3 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,683

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default

WOW It's that easy? :|

Thanks.
__________________

Need website help? PM me!
CrazeD is offline  
Old 08-08-2006, 06:09 PM   #4 (permalink)
 
Monster Techie

Join Date: May 2004

Location: Tucson, AZ, USA

Posts: 1,183

Vormund

Send a message via AIM to Vormund Send a message via MSN to Vormund Send a message via Yahoo to Vormund
Default

Make a batch file to run a program? Sure...but how would that be binding it to the key? o.O (No pun intended, I'm just curious if I'm missing something.)

-X
__________________
Vormund is offline  
Old 08-08-2006, 08:04 PM   #5 (permalink)
 
Monster Techie

Join Date: Apr 2005

Posts: 1,909

jcortes is on a distinguished road

Send a message via AIM to jcortes
Default

a batch file is not that hard to make expecially to make it open a program all you do it ud CD to change the directory to the folder that the exe is in then once you are in that folder say C:\windows\sytem32\> you then run the command of the exe simly like this C\windows\system32\>cmd.exe and it will run
__________________

AIM = jcortestechhelp
jcortes is offline  
Old 08-14-2006, 01:20 AM   #6 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default

Quote:
Originally posted by jcortes
a batch file is not that hard to make expecially to make it open a program all you do it ud CD to change the directory to the folder that the exe is in then once you are in that folder say C:\windows\sytem32\> you then run the command of the exe simly like this C\windows\system32\>cmd.exe and it will run
The path statement provides additional filepaths to search through when attempting to run an exe.

After searching through the working directory, windows searches for the exe in the directories listed in the PATH environmental variable.

Type path in a cmd.exe window to view the directories.
Type set path=c:\dir1;c:\dir2 to change the path variable.
Type set path=%path%;C:\dir1 to append to the path statement.

By default xp's system32 and windows directories are added to the path statement. So you can execute cmd.exe from any working directory.
office politics is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On