shortcut extention + selecting file at random
got 2 questions
1) What is the extention to a shortcut? for example shortcut "1.avi" can not be called from an app cause i think it has a different real name
2)how can i make a program select a random existing file (shortcut file of avi) from its app.path folder?
Re: shortcut extention + selecting file at random
1) Shortcuts are *.lnk
2) Use Dir in a loop to get a list of files (you can use a dynamic array of strings for this), then select one at random.