|
-
Nov 25th, 2001, 08:28 AM
#1
Thread Starter
Junior Member
open a exe file from a vb program?
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?
-
Nov 25th, 2001, 08:30 AM
#2
Use the Shell command.
VB Code:
Shell "Notepad.exe c:\thePath\Hello.txt", vbNormalFocus
You can also use the ShellExecute API function.
-
Nov 25th, 2001, 08:52 AM
#3
Thread Starter
Junior Member
if...?
if I got a string variable that have the path and all how do I use that then?
-
Nov 25th, 2001, 08:56 AM
#4
VB Code:
Shell "Notepad.exe " & TheStringVariable, vbNormalFocus
-
Nov 25th, 2001, 08:57 AM
#5
PowerPoster
Something like this:
VB Code:
Shell "Notepad.exe " & Path_To_The_File_And_Its_Name, vbNormalFocus
-
Nov 25th, 2001, 08:57 AM
#6
New Member
-
Nov 25th, 2001, 09:04 AM
#7
Thread Starter
Junior Member
thx
thx to you all for answer my stupid questions =)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|