Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Creating a file sorter
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
HyperFlexed




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Fri Nov 19, 2004 4:32 pm   Post subject: (No 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()
HyperFlexed




PostPosted: Sat Nov 20, 2004 2:09 am   Post subject: (No subject)

*shudders*

OWNAGE. This will make my job alot easier.... man.. thx. Smile Very Happy
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: