how to open a specific file with vb?

henhen10

Regular Member
Joined
Nov 18, 2010
Messages
419
Reaction score
86
I am willing to make a vb exe file which will open another file when you click a button or something.
how can I do this?

btw I am having VB 2010 and when I do build application I don't know where the exe is being saved.

Thanks in advance for the helpers and sorry if this is the wrong section.

Chen
 
just google : [h=1]Working with Files in Visual Basic[/h]
 
exe is usually saved in your project folder
 
It depends on the what type of file you want to open but for the selection of the file you can use opendialog box control of vb
 
The .vb file extension format can be opened using the following:
Text Editors - The code is placed in the text editor and the file is saved with the .vb file extension. Some popular editors are listed below.

  • TextPad
  • Microsoft Word
  • Notepad
  • Abiword
Browsers - the .vb file extension can be viewed and executed using the popular browsers listed below.
Internet Explorer

  • Safari
  • Firefox
  • Chrome
  • Opera
Web Development Software's

  • Visual Studio
  • Microsoft Expression Web
  • Dreamweaver
 
If you are sure that your application (.exe) and (.txt) files are in the same folder, then just use the file name - do not put the path.
 
Back
Top