Results 1 to 3 of 3

Thread: Accessing a file in app folder

  1. #1
    Senior Member
    Join Date
    Jul 2013
    Location
    Ontario, Canada
    Posts
    658

    Accessing a file in app folder

    Hello,

    I would like to access a file saved in a folder that is in the app folder.
    How would I access the app path?

    For example, say file abc.xls exists in an Excel folder.
    The development path could be:
    C:\Lianja\apps\testing\Excel\abc.xls.

    I could use the following:
    Code:
    oExcel = CREATEOBJECT("Excel.application")
    // Need help here.
    cExcelPath = app.path + "\Excel\abc.xls"
    oWorkbook = oExcel.Workbooks.Open(cExcelPath)
    Thanks,
    Cory

  2. #2
    Lianja Team davefoss's Avatar
    Join Date
    Feb 2012
    Posts
    111
    Hi Cory,

    DEFAULT() or even SYS(2003) should do it for you.

  3. #3
    Senior Member
    Join Date
    Jul 2013
    Location
    Ontario, Canada
    Posts
    658
    Thank you Dave.
    That should help me out.

    Cory

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us