Hey guys!
My brain is oozing out of my ears, because it has been thinking too har about this stupid problem.
The "copy file" function can only copy a file from one file to another in the
SAME directory. I need to copy it into a different directory.
This is what I have tried until now:
1) I tried to "copy file" into the same directory, but the "move file" command only moves it in the
SAME directory, not out of the directory! I can`t find a way to move it out
2)
rem current_dir$="c:/program files/dark basic software/dark basic/"
rem destination_dir$="c:/program files/documents and settings/the comet/"
rem filename$="hello.wav"
rem open source and destination file
open to read 1,current_dir$+filename$
open to write 2,destination_dir$+filename$
rem transfer data to destination
do
if file end(1)=1 then exit
read string 1,st$
write string 2,st$
loop
rem close the files
close file 1
close file 2
Before anyone asks:Yes, I have checked if the file already exists and that the source exists
Any ideas?
Thanks, TheComet
Oooooops!!! I accidentally formated drive c.