Re: Display file properties from VB?



The following will open the properties dialog for your application.
Change the path and file name to suit
App.Path is the location of your exe

Private Sub About_Click()
Dim MyPath as String

'this opens the windows file properties dialog
MyPath = App.Path
MyPath = MyPath & "\myfile.exe"
Call ShowProperties(MyPath)
End Sub

--
Steve Easton


"PeterD" <peter2@xxxxxxxxxx> wrote in message news:g9fvq2lpb7u7g6fo5n8esf8521i68v5djb@xxxxxxxxxx
I'd like to display the properties of a file. A dialog just like in
Windows Explorer would be ideal, I hate to write any more code than
necessary! <g>

Any suggestions?


.



Relevant Pages

  • RE: Error 2455 on close of db
    ... occurs when you exit this form in this way. ... I do have a split db with a hidden form that opens when the database does to ... Private Sub Form_Unload ...
    (microsoft.public.access.formscoding)
  • RE: Error 2455 on close of db
    ... occurs when you exit this form in this way. ... I do have a split db with a hidden form that opens when the database does to ... Private Sub Form_Unload ...
    (microsoft.public.access.formscoding)
  • RE: Error 2455 on close of db
    ... "Jack Leach" wrote: ... I do have a split db with a hidden form that opens when the database does to ... Private Sub Form_Unload ...
    (microsoft.public.access.formscoding)
  • Re: DCount count records based on field value?
    ... error (because it always opens in a new record). ... Private Sub Command116_Click ... Dim stDocName As String ... If ID is not a field in the form frmReportDocLinks then that might generate ...
    (microsoft.public.access.modulesdaovba)
  • Re: How trigger VBScript events in VBA ?
    ... > 2 I need make some task when a user opens mail from a folder. ... > collection of MailItem objects"? ... > Private Sub myMailItems_Open ...
    (microsoft.public.outlook.program_vba)