Import a list of files from a folder or Dictionary

Hi All,

https://sagecity.na.sage.com/support_communities/sage_erp_x3/b/tips-tricks-by-greytrix/archive/2015/11/26/how-to-access-only-files-from-directory

Thank you for the above post.
Have followed the same procedure mentioned and tried to check if we can get the list of files present in a folder.
ie. Have created a couple of the file in the folder C:\test
Used the above mentioned code and expected to get the list of file name present under C:\test, but am getting an error while testing the below code.

---------------------------
X3 Application Error
---------------------------
C:
test : Machine inaccessible
---------------------------
OK
-------------------------

Please let me know if you have any idea.

Thanks in advance.

  • 0
    Try checking a file that isn't at the root of the C drive. For example, c:\someOtherDirectory\test.txt.

    Also, what have you already tried to do in resolving this problem? Using Process Monitor when the problem happens to detect why the machine isn't available seems like a good idea here.

    Bob