backanim

  JR-FileViewer
Properties   Methods   Events
   

jrsoftlogo

            JRFileoperation.ExeCmd

           

  Description:

Opens a file for explore, print, edit and so on.

         

  ico_syntax   Syntax:

FileViewer1.FileCommand.ExeCmd(ByVal File As String, ByVal Path As String, ByVal mycommand As Execommands) As Variant

 

  ico_einstellungen Adjustments:

File

the filename

Path

the path

mycommand

One of the Execommands.

       

  ico_weitere Remarks:


Returns nothing .

Note: You can youse the ExecuteShellCommand for the listitem too
filev1.ListItem(filev1.FirstSelectedItem.Key).ExecuteShellCommand (IcProperties )

 

  ico_einstellungen Example:

     

    'open the properties dialog for all selected files
      Set myfilitem = FileV1.FirstSelectedItem
      If Not myfilitem Is Nothing Then
        Do
        If myfilitem.Selected = True Then
        xfile$ = myfilitem.FileName
        FileV1.FileCommand.ParentWnd = hWnd
        FileV1.FileCommand.ExeCmd xfile$, FileV1.Currentfolder, CmdProperties
        End If
        Set myfilitem = FileV1.NextSelectedItem
        Loop While Not myfilitem Is Nothing
      End If