View Full Version : command prompt?
bkenwright
07-22-2002, 05:00 PM
Hi all,
I want to modify the registry...so if I type for example in the run menu from the start button the word "comp" it will run a program I have selected...e.g. comp will run the program c:\notepad.exe or whatever.
Thanx if anyone knows....just can't seem to find the answer.
Thank you for any help any one :)
Ben
BertImmenschuh
07-22-2002, 05:18 PM
Don't use comp in WinXP, there is a comp.exe already.
Use a batch file with this in it:
c:\folder\filename.exe [for the executable of a program]
Then name it with something not already used.
I have a program named Dosman42, the executable is dosman.exe, the line in the batch file for dosman.bat is: c:\dosman42\dosman.exe.
If I put the .bat in a folder in the 'path' statement, typing the name in Run opens it.
In WinXP, a good place to store it is C:\Documents and Settings\mynamehere since that is where the Run command opens in.
But it could be stored in the root of C: or in C:\Windows, it all depends on your OS and how it handles the 'path'.
bkenwright
07-22-2002, 07:19 PM
I was wondering....if I put the address of the exe in the bat file...will I still be able to pass parameters to the main exe.
For example
C:>dosman hello.txt
Will this still work? I mean...if I put notepad in the .bat file...and called notepad.bat file.txt would file.txt still get opened in notepad?
Thanx again for you help.
7ate9
07-22-2002, 08:07 PM
If I read your post correctly, this link may also work for you. Check out Program Aliasing at <font color=blue>WinGuides Driver Guide</font color=blue> (http://www.winguides.com/registry/display.php/111/>http://www.winguides.com/registry/display.php/111/</a>
7ate9
<a)
BertImmenschuh
07-22-2002, 10:44 PM
This command in Run works: notepad c:\boot.ini. The boot.ini is a hidden file. Just have to be sure the path is right so notepad knows where to find it.
To be able to add parameters, make the batch file look like this:
c:\windows\notepad.exe %1
Save the above line as note.bat. Now if you type note file.txt in the Run box, Notepad will open up file.txt.
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.