Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: StaticFXim "newer" than that... lol
I have the Directory List node.. set the path.. I see my file list. (some xlsx, 1 csv)
I pass (connect) the Dir list to a csv file import..
So how do i "read" the list and pull that csv from the list
then, is there a way to set a Run Param to the Num split out?
if it were vb...
Dim tmp as string
Dim fsplit() as string
Dim fNum as string
tmp = Dir(path)
do while tmp <> ""
if left(tmp)="WIN_APF" and instr(tmp,".csv")<>0 Then
fsplit=split(replace(tmp,".csv",""),"_")
fNum = fsplit(Ubound(fsplit))
exit do
end if
tmp=dir
Loop
looks for the csv file with WIN_APF
finds it splits it up
grabs the number off the file
sets that number to a global variable
get it? lol