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.
For specifying the application context on
Computer 1
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the current (local) application context. |
||||||||||||||||||||||||||||||||||||||
Application Context Identifier |
Specifies the application context identifier. (more details...) |
Specifies the file on the target or source computer to use for the operation.
For specifying the file on Computer
1
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
MIL_TEXT("FileName") 1 |
Specifies the file name, and optionally the drive and directory, of the file in the target or source computer to use for the operation. (more details...) |
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.
For specifying the operation
|
|||||||||||||||||||||||||||||||||||||||
Operation |
Description
|
||||||||||||||||||||||||||||||||||||||
Comp2ContextAppId | |||||||||||||||||||||||||||||||||||||||
Comp2FileName | |||||||||||||||||||||||||||||||||||||||
OperationDataPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_FILE_COPY |
Specifies to copy the file from the source computer to the destination computer. (more details...) |
||||||||||||||||||||||||||||||||||||||
Comp2ContextAppId |
Specifies the application in which to copy the file specified using Comp1FileName. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the current (local) application context. |
||||||||||||||||||||||||||||||||||||||
Application Context Identifier |
Specifies the application context identifier. |
||||||||||||||||||||||||||||||||||||||
Comp2FileName |
Specifies the directory, and optionally a new file name, in the destination computer in which to copy the file specified using Comp1FileName. (more details...) |
||||||||||||||||||||||||||||||||||||||
MIL_TEXT("Drive\Path\[FileName]") 1 |
Specifies the drive, directory, and optionally the new file name, in the destination computer in which the file specified using Comp1FileName will be copied. (more details...) |
||||||||||||||||||||||||||||||||||||||
OperationDataPtr |
Data
type info
Data type: M_NULL |
||||||||||||||||||||||||||||||||||||||
M_FILE_COPY_MIL_DLL |
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. (more details...) |
||||||||||||||||||||||||||||||||||||||
Comp2ContextAppId |
Specifies the application in which to copy the file specified using Comp1FileName. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the current (local) application context. |
||||||||||||||||||||||||||||||||||||||
Application Context Identifier |
Specifies the application context identifier. |
||||||||||||||||||||||||||||||||||||||
Comp2FileName |
Specifies to rename the DLL copied to Computer 2. (more details...) |
||||||||||||||||||||||||||||||||||||||
MIL_TEXT("FileName") 1 |
Specifies a new file name for the copied DLL. |
||||||||||||||||||||||||||||||||||||||
OperationDataPtr |
Data
type info
Data type: M_NULL |
||||||||||||||||||||||||||||||||||||||
M_FILE_DELETE |
Specifies to delete the specified file on Computer 1. (more details...) |
||||||||||||||||||||||||||||||||||||||
OperationDataPtr |
Data
type info
Data type: M_NULL |
||||||||||||||||||||||||||||||||||||||
M_FILE_DELETE_DIR |
Specifies to delete a directory on Computer 1. (more details...) |
||||||||||||||||||||||||||||||||||||||
OperationDataPtr |
Data
type info
Data type: M_NULL |
||||||||||||||||||||||||||||||||||||||
M_FILE_DISPATCH |
Specifies to execute the specified program on Computer 1 without waiting for the specified program to terminate on the source computer. (more details...) |
||||||||||||||||||||||||||||||||||||||
OperationDataPtr |
Data
type info
Data type: M_NULL |
||||||||||||||||||||||||||||||||||||||
M_FILE_EXECUTE |
Specifies to execute the specified program on Computer 1. (more details...) |
||||||||||||||||||||||||||||||||||||||
OperationDataPtr |
Data
type info
Data type: M_NULL |
||||||||||||||||||||||||||||||||||||||
M_FILE_EXISTS |
Specifies whether the file passed in Comp1FileName exists on the system specified in Comp1ContextAppId. (more details...) |
||||||||||||||||||||||||||||||||||||||
OperationDataPtr | |||||||||||||||||||||||||||||||||||||||
M_NO |
Specifies that the file does not exist. |
||||||||||||||||||||||||||||||||||||||
M_YES |
Specifies that the file does exist. |
||||||||||||||||||||||||||||||||||||||
M_FILE_EXISTS_MIL_DLL |
Specifies whether the file passed in Comp1FileName exists on the system MIL DLL path specified in Comp1ContextAppId. (more details...) |
||||||||||||||||||||||||||||||||||||||
OperationDataPtr | |||||||||||||||||||||||||||||||||||||||
M_NO |
Specifies that the file does not exist. |
||||||||||||||||||||||||||||||||||||||
M_YES |
Specifies that the file does exist. |
||||||||||||||||||||||||||||||||||||||
M_FILE_MAKE_DIR |
Specifies to create a directory on Computer 1. (more details...) |
||||||||||||||||||||||||||||||||||||||
OperationDataPtr |
Data
type info
Data type: 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. |