0

CreateObject("roFileSystem") is invalid

Hi, I have placed into my autorun.brs:

Sub Main(args)
   print CreateObject("roFileSystem")

End Sub

But CreateObject("roFileSystem") is always invalid. Do I need to configure something before create a roFileSystem?

 

Thank you

5 comments

  • 0
    Avatar
    Bright Scripters info[at]brightscripters.com

    The roFileSystem may be a Roku only object, that is not compatible with BrightSign.

    What is it that you are trying to accomplish with this code?

  • 0
    Avatar
    Alvaro

    I want to check if a file exists.

     

    Thank you

  • 0
    Avatar
    Bright Scripters info[at]brightscripters.com

    You could use MatchFiles(path As String, pattern_in As String) As Object

    More information can be found here

    http://docs.brightsign.biz/display/DOC/Global+Functions#GlobalFunctions-MatchFiles(pathAsString,pattern_inAsString)AsObject

  • 0
    Avatar
    Alvaro

    Thank you, it worked perfectly!

  • 0
    Avatar
    Bright Scripters info[at]brightscripters.com

    Good job!

    We are always interested in knowing more about other bright scripters out there.

    Please drop us a line at info@brightscripters.com

Please sign in to leave a comment.