Link to home
Start Free TrialLog in
Avatar of apaddle
apaddle

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.


Avatar of gerodim
gerodim

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