Eyeon:Script/Reference/Libraries/os/execute

From VFXPedia

Jump to: navigation, search

Contents

OS : os.execute

Arguments

os.execute( command )

  • command (required, string)

A string containing the command to be executed by the operating system.

Returns

The exit value returned by the application run by command when the command is complete.

Remarks

This function causes a command to be executed by the operating system. All execution by eyeonScript halts until the command completes.

Requirements

  • eyeonScript 5.0
  • Fusion 5.0

Examples

-- delete a file with the 'del' command
os.execute([[del "c:\test\testfile.txt"]])
 
-- start Fusion, and don't wait for it to finish
os.execute([[start /b "Fusion" "c:\Program Files\Fusion\Fusion.exe"]])


Tips for execute (edit)

EyeonTips:Script/Reference/Libraries/os/execute