# execasync

### execasync(Program, CommandLineArguments)

Execute an external application and DO NOT wait for it to complete - return immediately.

## Arguments

Argument | Data Type | Description
Program | string | Either: The name or full path to a program (e.g. "notepad.exe"), or The name or path to a file that has an associated application (e.g. "Document.txt")
Command Line Arguments | string | If the application accepts command line arguments, you can pass them as a string.

## Returns

The integer process ID code of the application.

## Description

This function allows you to execute external programs, WITHOUT waiting for the program to complete. Possible examples might include:

- run an FTP job to download one or more files before running the profile
- trigger an external program that queries a specialized line of business application
- after an export from CRM has been done, run FTP to upload the data to an external site.

You will often use this function in a Pre Run or Post Run expression (see the details for Tab 1: Source and Target).

## Examples

Example | Returns | Description
execasync("ftp.exe", "-l fred") | ID of process | Run an external FTP application, passing in a command line of "-l fred"

## See Also

exec(), stop(), log()