Quick answer needed for Notepad

Posted on 2004-11-10
Last Modified: 2013-12-28
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.

Question by:apaddle
    LVL 95

    Accepted Solution

    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).
    LVL 13

    Expert Comment

    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
    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.

    LVL 3

    Expert Comment

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    For a variety of reasons, it sometimes makes sense to reboot a Windows-based computer on a regular, perhaps daily basis. This "cures" a lot of ills by resetting processes, flushing caches, refreshing memory, and reestablish network connections. In a…
    Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now