d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Batch Files Help > Need Basic Help
Add Reply New Topic New Poll
Member
Posts: 2,308
Joined: Sep 27 2012
Gold: 0.00
Aug 13 2015 12:04pm
Alright so I want to know how to make it so the batch file looks for a certain file on my pc when I press a certain key. Let's say I want it look for Firefox when I press F and Start it if I press S. What would the command be?

Thanks for any help.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Aug 13 2015 12:27pm
http://stackoverflow.com/questions/414715/a-bat-or-wsh-script-that-can-search-for-files

have an array on top of the file. when user enters F it will lookup the F code and return Firefox, S is mapped to Start, etc

then calling it would be:
mysearchscript.cmd F

This post was edited by carteblanche on Aug 13 2015 12:29pm
Member
Posts: 29,380
Joined: Mar 27 2008
Gold: 504.69
Aug 13 2015 12:32pm
You might be better off looking for some type of macro program.

This post was edited by ROM on Aug 13 2015 12:32pm
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll