Problems with CopyFile, DeleteFile and ExecFile

Blitz3D Forums/Blitz3D Beginners Area/Problems with CopyFile, DeleteFile and ExecFile

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

the filename will contain the full path of the file passed via commandline, you will need to extract the filename (everything after the last backslash) and then append it to the second parameter of CopyFile

This works because I have specified the filename to copy to:
file$=CommandLine$() 
CopyFile(file$,"c:\temp\test.txt") 
Print file$
WaitKey()
End