Quick answer needed for Notepad

I need a command line entry for notepad.  ex load program and then file from 2 different locals on disk.  c:\windows\notepad.exe and the text file is c:\newschools.txt.  The program has to be loaded so I can't just type the c:\newschools.txt, I have to have the c:\windows\notepad.exe and then the file to open with it.  I hope this is clear.

Apaddle
apaddleAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lee W, MVPTechnology and Business Process AdvisorCommented:
Have you tried:

notepad c:\newschools.txt

or, failing that:

c:\windows\notepad c:\newschools.txt

(Windows should be in your path environment variable so you should be able to run notepad from anywhere by just typing notepad.  If not, putting the path to the notepad.exe file and the path to the file you want to open should also work).
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gonzal13RetiredCommented:
I forgot my Dos commands.
I do not know the commands to automatically open the file. Some one can fill it in.


What I did, is to go to MSDOS.
Made a  bat file by typing Edit school.bat
The edit screen appears in blue
Type  cd..
Type c:\windows\notepad.exe on the next line
Type  exit
Save as school with the default .bat
Whent to Windows Explorer
C:\
Clicked on School.bat
Chose 'make short cut
Moved the short cut to the screen
Next Clicked on the ICON
Went to Properties
Clicked on Icons
Chose a new Icon instead of the default MSDOS icon.


0
gerodimCommented:
go to a command prompt
go to c:
type edit autoexec.bat
where it says path = .................
add another path your c:\windows (or whatever folder windows are installed)
then u could type notepad <filename> wherever you want
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.