Click here to show toolbars of the Web Online Help System: show toolbars |
MIL_ID Comp1ContextAppId, | //in |
MIL_CONST_TEXT_PTR Comp1FileName, | //in |
MIL_ID Comp2ContextAppId, | //in |
MIL_CONST_TEXT_PTR Comp2FileName, | //in |
MIL_INT64 Operation, | //in |
MIL_INT64 OperationFlag, | //in |
void *OperationDataPtr | //out |
This function can copy a file from one computer to another, including your local computer as either source or destination. This function can also remotely delete a file, create or delete a directory, or execute a program on another computer. When executing a program, you can choose to wait for the remotely-run program to finish before proceeding with the local program, or start the remote program and immediately continue with the local program.
This function is typically used to perform operations on remote computers, but also works on the local computer.
Specifies the identifier of the application context to use. The computer that contains this application is referred to as computer 1.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the current (local) application context. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the application context identifier. |
Specifies the file on the target or source computer to use for the operation.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the file name, and optionally the drive and directory, of the file in the target or source computer to use for the operation. |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
Specifies the destination application in which to copy the file specified using Comp1FileName during the M_FILE_COPY or M_FILE_COPY_MIL_DLL operation. The computer that contains this application is referred to as computer 2.
Note that computer 2 can be the same as computer 1. In other words, the source and destination of the copied file can be different paths on the same computer.
Set this parameter to M_NULL when not in use.
See the Parameter associations section for possible values that can be specified.
Specifies the directory (and optionally a new file name) in computer 2 in which to copy the file specified using Comp1FileName.
Set this parameter to M_NULL when not in use.
See the Parameter associations section for possible values that can be specified.
Specifies the operation to perform on the specified file.
See the Parameter associations section for possible values that can be specified.
Specifies the address of the user data that used by some operations. Set this parameter to M_NULL if not used.
See the Parameter associations section for possible values that can be returned.
The table below lists possible values for the Comp2ContextAppId, Comp2FileName, and Operation parameters and possible values returned to the OperationDataPtr parameter.
Set unused parameters to M_NULL.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
Comp2ContextAppId | |||||||||||||||||||||||||||||||||||||||
Comp2FileName | |||||||||||||||||||||||||||||||||||||||
OperationDataPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to copy the file from the source computer to the destination computer. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the application in which to copy the file specified using Comp1FileName. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the current (local) application context. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the application context identifier. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the directory, and optionally a new file name, in the destination computer in which to copy the file specified using Comp1FileName. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the drive, directory, and optionally the new file name, in the destination computer in which the file specified using Comp1FileName will be copied. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: Set this parameter to
M_NULL
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to copy a user created DLL that contains custom MIL functions from the source computer to the location of the MIL DLLs on the destination computer. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the application in which to copy the file specified using Comp1FileName. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the current (local) application context. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the application context identifier. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to rename the DLL copied to Computer 2. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a new file name for the copied DLL. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: Set this parameter to
M_NULL
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to delete the specified file on Computer 1. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: Set this parameter to
M_NULL
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to delete a directory on Computer 1. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: Set this parameter to
M_NULL
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to execute the specified program on Computer 1 without waiting for the specified program to terminate on the source computer. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: Set this parameter to
M_NULL
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to execute the specified program on Computer 1. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: Set this parameter to
M_NULL
|
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies whether the file passed in Comp1FileName exists on the system specified in Comp1ContextAppId. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: address of a MIL_INT
Returns one of the following. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the file does not exist. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the file does exist. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies whether the file passed in Comp1FileName exists on the system MIL DLL path specified in Comp1ContextAppId. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: address of a MIL_INT
Returns one of the following. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the file does not exist. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() |
Specifies that the file does exist. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to create a directory on Computer 1. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: Set this parameter to
M_NULL
|
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |