Computer Science Canada Creating a file sorter |
Author: | HyperFlexed [ Fri Nov 19, 2004 10:59 am ] |
Post subject: | Creating a file sorter |
Is it possible to write a program in turing that does this... 1. Finds all .wav files in a given directory 2. Go through them one at a time. Pressing D deletes it, Pressing P plays it I want to make something like this because doing it with my folder open and WMP is very slow. I make electronic music and I am trying to sort all my samples and delete the crap. any help/pointers would be appreciated. P.S - I have heard that Turing cannot delete files, if that can't be done, then I could just have it rename the file to a number with the 'delThis' prefix could I not? |
Author: | Delos [ Fri Nov 19, 2004 4:32 pm ] |
Post subject: | |
Ooo...files. Yes, this can be done. You need to learn about Directories. Press F10 and look for the Dir. module. Specifically, you'll need: Dir.Open() Dir.Get() File.Delete() Music.PlayFile() |
Author: | HyperFlexed [ Sat Nov 20, 2004 2:09 am ] |
Post subject: | |
*shudders* OWNAGE. This will make my job alot easier.... man.. thx. ![]() ![]() |