Invoking NotePad from the Run Command

J

JCO

Okay this may seem like a weird question but I want to see if there is a
better way of doing this. I have several text documents (*.txt) that I uses
as help files. Meaning, that I want to be able to pop open the text file
quickly using the run command, get the info out and close the file.
Currently I do this with a batch file that uses Notepad. Example; I have a
file named info.bat. This bat file is in a folder where the path of the
folder has been added to my system (old DOS method). Therefore, from the
run command, I can type "info". Since the bat file is in my path, info.bat
is executed. The content of info.bat is simply this:

Notepad D:\MyUtilities\info.txt.

Everything works fine except for one thing. Each time a Notepad opens a
text file (using a bat file), a command prompt window is open too. It is
this command prompt window that I don't want open. It's becoming a hassle
to always have to close the command prompt.

Is there any way to avoid the command prompt from being open or is there a
better way to open my text files. I really like the way I can use a single
word to open the document.

Thanks
 
D

Dave Patrick

Start|Run|D:\MyUtilities\info.txt

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Okay this may seem like a weird question but I want to see if there is a
| better way of doing this. I have several text documents (*.txt) that I
uses
| as help files. Meaning, that I want to be able to pop open the text file
| quickly using the run command, get the info out and close the file.
| Currently I do this with a batch file that uses Notepad. Example; I have
a
| file named info.bat. This bat file is in a folder where the path of the
| folder has been added to my system (old DOS method). Therefore, from the
| run command, I can type "info". Since the bat file is in my path,
info.bat
| is executed. The content of info.bat is simply this:
|
| Notepad D:\MyUtilities\info.txt.
|
| Everything works fine except for one thing. Each time a Notepad opens a
| text file (using a bat file), a command prompt window is open too. It is
| this command prompt window that I don't want open. It's becoming a hassle
| to always have to close the command prompt.
|
| Is there any way to avoid the command prompt from being open or is there a
| better way to open my text files. I really like the way I can use a
single
| word to open the document.
|
| Thanks
|
|
|
|
 
J

John John

Dave said:
Start|Run|D:\MyUtilities\info.txt

And with the above example, if you put D:\MyUtilities\ in your path
variable you will be able to open the file from the Run box by simply
typing info.txt

John
 
J

JCO

Except I have about 6 files that I need to access the same way. I want to
use single words (short).
 
D

Dave Patrick

Then use my second reply.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Except I have about 6 files that I need to access the same way. I want to
| use single words (short).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top