![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Official Updates Updates to official libraries could be found here. This forum is only available to licensed users. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
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. Harry |
|
||||
|
You haven't noticed this library of mine then
FilesEx library - returns file information |
|
|||
|
Agraham,
Thanks for your prompt reply. 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?? Harry |
|
|||
![]() 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. Harry |
|
||||
|
I haven't tested it but it would look something like this. finfobj is an Object and args is an Object Array.
Code:
finfobj.New1(false)
args.new1(1)
args.SetValue(0, "c:\temp\save\a.a", "System.String")
finfobj.CreateNew2("System.IO.FileInfo", args.Value)
If finfobj.GetProperty("Exists") = true Then
finfobj.RunMethod2("MoveTo", "c:\temp\save\b.b", "System.String")
End If
|
|
|||
|
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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Merging Outlook library and Phone library | Erel | Official Updates | 2 | 07-14-2008 03:38 PM |
| load textfile with special characters (äöü) | bob | Questions & Help Needed | 2 | 11-19-2007 01:24 PM |
| New serial library - beta version | Erel | Announcements | 13 | 08-02-2007 12:24 PM |
| Special Folders on PC | BPak | Questions & Help Needed | 2 | 06-01-2007 09:53 PM |