CopyFile() not working...

Blitz3D Forums/Blitz3D Programming/CopyFile() not working...

poopla(Posted 2003) [#1]
I pass it a file, and a destination path, and it doesnt seem to be doing anything.


wedoe(Posted 2003) [#2]
Try copy to the same folder first to see if it's the command or the path that is wrong...


poopla(Posted 2003) [#3]
Definately not wrong directories/paths... :\. Wierd.


Rob(Posted 2003) [#4]
do you use \ slashes?


Floyd(Posted 2003) [#5]
You have to specify the file name of the destination, not just the path.

If the destination in somewhere other than the current directory then you must specify both path and file name.


poopla(Posted 2003) [#6]
path and filename both being dictated, yes I am using \ slashes, and I'm using FULL path/filenames in the copyfile() call.


Zenith(Posted 2003) [#7]
The directory must also be real that you are copying the file to, it will not create the directory for you.

You wouldn't have to make us guess what's wrong if you were to show us code.


poopla(Posted 2003) [#8]

CopyFile "C:\Documents and Settings\Michael\Desktop\File Update\extras\MessageBox.bb", "C:\Documents and Settings\Michael\Desktop\File Update"



Even this doesnt work.


Rob(Posted 2003) [#9]
it wouldn't, there's no ending filename.


poopla(Posted 2003) [#10]
Rob you git!

Was going to edit me last post ;)


Rob(Posted 2003) [#11]
MWUAHAHAHHAHAHAAHA


wedoe(Posted 2003) [#12]
Definately not wrong directories/paths... :\. Wierd.
LOL :)


poopla(Posted 2003) [#13]
Don't make me slap you! ;)