# Include Directory with system.file.openFile()

**URL:** <https://forum.inductiveautomation.com/t/include-directory-with-system-file-openfile/5324>\
**Category:** Ignition\
**Created:** [October 24, 2012, 8:42pm UTC](https://forum.inductiveautomation.com/t/include-directory-with-system-file-openfile/5324 "2012-10-24T20:42:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikehill100](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@mikehill100](https://forum.inductiveautomation.com/u/mikehill100)\
**Post date:** [October 24, 2012, 8:42pm UTC](https://forum.inductiveautomation.com/t/include-directory-with-system-file-openfile/5324/1 "2012-10-24T20:42:38Z")

</div>

Right now system.file.openFile([extension]) will default to myDocuments.

It would be nice if it had a second parameter for directory, so if a technician needs to open an Excel file they wouldn’t have access to the entire computer.

example:  
system.file.openFile([directory], [extension])

system.file.openFile(“C:\Desktop\Reports”, “xls”)

Thanks,

Mike
