loading and opening a txt file in notepad

Posted on 2005-04-04
Medium Priority
Last Modified: 2010-05-02
i have a program that creates a text file.

after the processing has been completed I want it to open in notepad.  how do i do this in vb
Question by:genesisproject
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 19

Expert Comment

ID: 13700672
Shell ("notepad your path and filename.txt"), vbNormalFocus

LVL 37

Accepted Solution

Harisha M G earned 1500 total points
ID: 13700677
Hi genesisproject,
    Just run notepad with the filename...

Shell Notepad.exe "C:\Folder\File.txt"

LVL 10

Expert Comment

ID: 13700699
Set objShell = CreateObject("WScript.Shell")
objShell.Run "notepad test.txt"

Obviously change test.txt to the name of your notepad document.  This is VB script but should be very similar in VB.
LVL 37

Expert Comment

by:Harisha M G
ID: 13700715
A little late :(

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month11 days, 21 hours left to enroll

752 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