Forum Discussion

rmnrdi's avatar
rmnrdi
Contributor
7 years ago

FindFiles not working

This line of code is not finding a file and returning null.   foundFiles = aqFileSystem.FindFiles("C:\\Temp\\" , "*.rxi"); //I'm using javascript, hence the escape \   Here is a picture of ...
  • SaravanaKumar_N's avatar
    7 years ago

    rmnrdi

    I did use the same code and .rxi extension file. It did work for me, please refer below...

    function FileFinder()
    {
      var foundFiles, aFile;
      foundFiles = aqFileSystem.FindFiles("E:\\UsersDirectory\\", "*.rxi");
      if (!strictEqual(foundFiles, null))
        while (foundFiles.HasNext())
        {
          aFile = foundFiles.Next();
          Log.Message(aFile.Name);
        }
      else
        Log.Message("No files were found.");
    }