I would like to find some code that will open files in a Windows directory recursively.
Let say my path is: c:\charlie\data
I want JMP to find all the *.txt files in this and lower directories and open them all.
Ultimately I will merge them but for now I just want to open them all.
I have tried (with no luck):
path = "C:\charlie\data\data1";
file_list = Files in Directory("C:\charlie\data\data1");
for (i=1, i<=NItems(file_list), i++,
dt =
Open(
path || file_list,
Import Settings(
End Of Line( CRLF, CR, LF ),
End Of Field( Comma, Other( "0x7c" ) ),
Strip Quotes( 1 ),
Use Apostrophe as Quotation Mark( 0 ),
Scan Whole File( 1 ),
Treat empty columns as numeric( 0 ),
Labels( 1 ),
Column Names Start( 1 ),
Data Starts( 2 ),
Lines To Read( All ),
Year Rule( "20xx" )
)
);
);