|
-
November 19th, 1999, 08:31 AM
#1
Recieving a File Name from windows
When you open a file from my computer or windows explorer the associated program starts and loads the file. How do you set up a visual basic application to handle this. I can associate my program with file types so that my application will start up when they are opened, but I don't know how to recieve the string of the filename so that I can do something with it. How do you handle this process?
-
November 19th, 1999, 12:46 PM
#2
Re: Recieving a File Name from windows
Take a look at the Command Function, it returns a string containing the commandLine Passed to your application, if any, eg.
private Form_Load()
If len(Command) then MsgBox "You Entered the Following Command Line:" & vbCrLf & Command
End Sub
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
November 20th, 1999, 09:41 PM
#3
Re: Recieving a File Name from windows
Excellent! Thank you very much Aaron!
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
|