|
-
Apr 30th, 2008, 09:43 PM
#1
Thread Starter
Fanatic Member
[Resolved]open file with specific program
kind of an out there question but is it possible in vb code to open a file with a specific program not the default program so for example open a inf file with word even tho its not the default file type associated with word
Last edited by dark_shadow; May 1st, 2008 at 11:51 AM.
-
Apr 30th, 2008, 10:23 PM
#2
Re: open file with specific program
1. For Word only: Create a Word App, use Documents.Open(FileName)
2. General: Use Shell() if program file support command-line.
Shell ProgramFileFullPath & " " & DocumentFullPath
If either path contains a space it must be surrounded by quotes
-
May 1st, 2008, 11:50 AM
#3
Thread Starter
Fanatic Member
Re: open file with specific program
alright that seemed to work thanks alot
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
|