Enigma 78 Posted December 29, 2010 Report Share Posted December 29, 2010 Anyone knows how to determine filenames and it's extensions in a folder and add these to a list? Also how to determine whether there are subfolders in a folder and add these subfolders to a list? Quote Link to post Share on other sites
UBotBuddy 331 Posted December 29, 2010 Report Share Posted December 29, 2010 You will have to execute a Shell command and then issue a statement like this in a batch file: dir /AD /B > directory-list.txt Then you can load that file into a list in your bot. Quote Link to post Share on other sites
Enigma 78 Posted December 29, 2010 Author Report Share Posted December 29, 2010 You will have to execute a Shell command and then issue a statement like this in a batch file: dir /AD /B > directory-list.txt Then you can load that file into a list in your bot. Thanks buddy.Yep i already found that here too yet http://ubotstudio.com/forum/index.php?/topic/3478-choose-random-file-to-upload-from-folder/ I'll play with it now.Thanks again. Quote Link to post Share on other sites
Net66 54 Posted December 29, 2010 Report Share Posted December 29, 2010 The pro and dev version now has a get files constant for putting the file names into a list. Don't believe its recursive as far as folders go though. Andy Quote Link to post Share on other sites
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.