Open Notepad and put text with vb.net
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
5 posts
Page 1 of 1
hello
Is there anyone who know a code to open app like notepad and automatically open a text file in it, also can it work for notepad ++ and how please
example code
Is there anyone who know a code to open app like notepad and automatically open a text file in it, also can it work for notepad ++ and how please
example code
Code: Select all
(this doesnt work and i havent tested just saying that it kinda should look like this, tyDim path as string = "C:\file.txt"
process.start("notepad.exe", path)
I'm not sure I understand what you mean. Do you mean automatically opening certain files with an app (file association) or launching an app through code that will open a file?
The code you posted above: in the case of Notepad, this will work, but programs may vary in the way they treat arguments passed to them on load.
The code you posted above: in the case of Notepad, this will work, but programs may vary in the way they treat arguments passed to them on load.
Try this
Code: Select all
System.Diagnostics.Process.Start ("notepad.exe")
Find my programs on Softpedia
To open Notepad++ and load a file you can do this
Code: Select all
Just tested it and it works fine.Process.Start("notepad++.exe", "FULL FILE PATH HERE")
You can find me on Facebook or on Skype mihai_92b
ohh wait.. i've gave the write code thinking it was wrong,..
it actually worked .. thanks to all my bad
it actually worked .. thanks to all my bad
5 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023