Computing.Net > Forums > Disk Operating System > open a notepad text file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

open a notepad text file

Reply to Message Icon

Name: xiaowei cao
Date: October 28, 2003 at 06:12:29 Pacific
OS: windows Xp
CPU/Ram: 320
Comment:

I have a batch file. At the end I need to open a log file for me to view in the morning.
How can I write a command to open the file in notepad?

Thanks




Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: October 28, 2003 at 06:27:51 Pacific
Reply:

So: NotePad File_Name


0

Response Number 2
Name: xiaowei
Date: October 28, 2003 at 07:54:17 Pacific
Reply:

I don't know much about DOS. Please help a little more. Can you write the whole line to open a file in notepad?

I tried
START "C:\WINDOWS\NOTEPAD.exe testlog.txt"
it didn't work

Thanks


0

Response Number 3
Name: IVO
Date: October 28, 2003 at 08:23:40 Pacific
Reply:

Just

NotePad "TestLog.txt"

but you must type the full path leading to your file. So if TestLog.txt is in the following folder

C:\My Folder\Sub Folder\TestLog.txt

you have to type

NotePad "C:\My Folder\Sub Folder\TestLog.txt"

NotePad being a Windows application does not require however to have its own path declared.

that should suffice, but if you need more support post again.


0

Response Number 4
Name: xiaowei
Date: October 28, 2003 at 09:01:55 Pacific
Reply:

It works this time.

Thank you so much.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


setting variables from fi... DOS Backup using CD-R dri...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: open a notepad text file

Printing Chinese text file from DOS www.computing.net/answers/dos/printing-chinese-text-file-from-dos-/10841.html

Creating a batch file to append to a text file www.computing.net/answers/dos/creating-a-batch-file-to-append-to-a-text-file/3180.html

Delete all the lines in text file www.computing.net/answers/dos/delete-all-the-lines-in-text-file/16767.html