peliosis Posted August 7, 2006 Share Posted August 7, 2006 Is it possible to list files in certain directory using hscript or expression language or only with some external language? I'd like to get all textures from dir, but I found only findfile, findfiles expressions. Quote Link to comment Share on other sites More sharing options...
Jason Posted August 7, 2006 Share Posted August 7, 2006 set files = `system("ls -1")` Quote Link to comment Share on other sites More sharing options...
sibarrick Posted August 8, 2006 Share Posted August 8, 2006 set files = `system("ls -1")` or set files = `run("uls")` Quote Link to comment Share on other sites More sharing options...
peliosis Posted August 9, 2006 Author Share Posted August 9, 2006 Thank you SO much! I always think I checked all script commands but there always it a miss:) Quote Link to comment Share on other sites More sharing options...
Jason Posted August 9, 2006 Share Posted August 9, 2006 Thank you SO much! I always think I checked all script commands but there always it a miss:) Of course I'd use Simon's variation, actually; it seems a little more suited for it since with mine. Using regular "ls" I need to put a -1 for only the filename and it has to open a new shell - which would be a touch slower than using the built-in command. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.