FileMove anywhere?

bfan

Member
Licensed User
Hi,

I need to move a (not so small) file to other folder, but I can't find a sort of FileMove commnad.

Is there a solution other than FileCopy+FileDel?

Thanks.
 
Erel,

they are about 20MB.

They are mp3 files I would like to be automatically moved to a "listened" folder.

Other problem: when trying copy+del, it can't be deleted because fmod keeps locking it after it has finished or after fmod.stop.

I'd like to do a fmod.close, which I guess I can't, can I?

Thanks.
 
Other problem: when trying copy+del, it can't be deleted because fmod keeps locking it after it has finished or after fmod.stop.

I'm baffled by that. My "Music Player" deletes files (if wished) after it has played them with FMOD and I don't have a problem with failures. My device has WM5.0.

Mike.
 
There is no FileMove command. There is no such command in the .Net CF.
Ahem! cough!, cough! Not wanting to contradict the master (but going to anyway!) - what about FileInfo.MoveTo ("Moves a specified file to a new location, providing the option to specify a new file name. ") as exposed in my FilesEx library http://www.b4x.com/forum/additional...brary-returns-file-information.html#post10051 (@Erel - here's an example of the lack of a nice title for a URL. @Everybody-Erel - he will know what I mean even if you don't).
 
I'm baffled by that. My "Music Player" deletes files (if wished) after it has played them with FMOD and I don't have a problem with failures. My device has WM5.0.

Mike,

does your player delete the file right after it stops?

I get an error without description in the DelFile instruction, so I guess the reason is that the file is locked.

Without closing the error message, I switch to WM6.5 file explorer and try to delete the file and I can't either. It must be locked by fmod.

I was planning to delete the file after the next track starts playing or in the AppClose, but if you have found other solution, please let me know.

I am going to try FileEx to move the file.

Thanks you all.

Antonio
 
Back
Top