• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 166
  • Last Modified:

loading and opening a txt file in notepad

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
0
genesisproject
Asked:
genesisproject
  • 2
1 Solution
 
ShauliCommented:
Shell ("notepad your path and filename.txt"), vbNormalFocus

S
0
 
Harisha M GCommented:
Hi genesisproject,
    Just run notepad with the filename...

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

Bye
---
Harish
0
 
dis1931Commented:
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.
0
 
Harisha M GCommented:
A little late :(
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now