event.commandLineDir

Type String
Event system
Revision Release 2024.3703
Keywords system, commandLineDir
See also event.commandLineArgs

Overview

Absolute path to the working directory that event.commandLineArgs were provided from. If relative paths to files or directories have been provided by the received command line arguments array, they are relative to this property's working directory. If desired, you can use the Lua file system library's lfs.chdir( path ) function to change the app's current working directory to the working directory provided by this property.

Gotchas

This property only exists for Win32 desktop apps when event.type is "applicationOpen" and the event.commandLineArgs property exists.