JRFileoperation.ExeCmd
           
|
  Description:
|
|
|
|
Opens a file for explore, print, edit and so on.
|
|
|
|
|
|
|
|
|
|
|
         
|
    Syntax:
|
|
|
|
|
FileViewer1.FileCommand.ExeCmd(ByVal File As String, ByVal Path As String, ByVal mycommand As Execommands) As Variant
|
|
|
|
|
|
 
|
  Adjustments:
|
|
|
|
File
|
the filename
|
|
|
Path
|
the path
|
|
|
mycommand
|
One of the Execommands.
|
|
       
|
  Remarks:
|
|
|
|
|
Returns nothing .
Note: You can youse the ExecuteShellCommand for the listitem too filev1.ListItem(filev1.FirstSelectedItem.Key).ExecuteShellCommand (IcProperties )
|
|
 
|
  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
 
|
|
|