Community
PowerMill Forum
Welcome to Autodesk’s PowerMill Forums. Share your knowledge, ask questions, and explore popular PowerMill topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

file list

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
peterquRXR7S
217 Views, 2 Replies

file list

I got an error. Does anyone know the reason?

 

string fd= "C:\work\Vericut Export\Mazak\Posted Files"
 
foreach fl in file_list("files", $fd, ".eia") {
}
 
 
2 REPLIES 2
Message 2 of 3

@peterquRXR7S  : you're writing the wrong syntax
 
Replaces:

 

foreach fl in file_list("files", $fd, ".eia") {
}

 

by:

 

foreach fl in list_files("files", $fd, ".eia") {
}​

 

 
Message 3 of 3
peterquRXR7S
in reply to: peterquRXR7S

Yes. I made a mistake. Thank you!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report