I have read the information on the DOOR library, it looks impressive.
Although I do not completely understand it, I got the idea that it should be possible now to realize an old wish of my (and others), being the possibility to rename a file, without the need for a lengthy copy and delete or the use of MortScript.
If I am right, can somebody give me a sample or just a hint how to realize what I want.
The documentation on the FilesEx library reads : "As there is no real Rename function in .NET this is actually a FileMove within the same directory.". So I guess that this is not the solution I am looking for: the size of the files I am 'renaming' on a SD card is some 6-8 M Bytes, so copying takes quite some time.
I did hope that using the DOOR library a real rename was possible, but now I doubt.
What should be the code to test it:
create a FileObject??
assign a file to that object (with path)??
set the Name property ??
destroy the File Object??
"As there is no real Rename function in .NET this is actually a FileMove within the same directory.". So I guess that this is not the solution I am looking for
Have you tried it? A FileMove operation does not necessarily imply a copy and delete. As I said there is no true rename in .NET (or in the Win32 API that I can find!), even the VisualBasic .NET Rename ends up calling the Windows Win32 MoveFile API function.
Indeed, I didn't test the Rename function of the FileEx library. I just assumed that Move was identical to Copy. Of course, assuming is not the best way to operate; testing is the only solution. Now it works perfectly.
Yet, I am interested to know whether the same result could be reached with the DOOR library; just to understand a little bit it's possibilities.
I'm iterested in build a piano program, and I guess it is possible emulate the piano keys whith the keyboard keys, if I'd had a event like KEYDOWN and KEYUP (The note is played form KeyDown event till KeyUp event or during the key is pressed). The problem is that manage the door library is too dificult for me, could you help me with an example?
Thanks very much