hi, is there anyway to start a program from vb, and in the same time have a input file for that program to open?
like if I got a file hello.txt and want notepad to open it?
Printable View
hi, is there anyway to start a program from vb, and in the same time have a input file for that program to open?
like if I got a file hello.txt and want notepad to open it?
Use the Shell command.You can also use the ShellExecute API function.VB Code:
Shell "Notepad.exe c:\thePath\Hello.txt", vbNormalFocus
if I got a string variable that have the path and all how do I use that then?
VB Code:
Shell "Notepad.exe " & TheStringVariable, vbNormalFocus
Something like this:
VB Code:
Shell "Notepad.exe " & Path_To_The_File_And_Its_Name, vbNormalFocus
Yes! Just the Shell
thx to you all for answer my stupid questions =)