Page 1 of 1

Moveing Files

Posted: Fri Nov 12, 2004 8:09 pm
by Killer
Is ther a way to move a file to another folder use a qbasic program

Posted: Fri Nov 12, 2004 8:55 pm
by Guest
This is the fastest way that I know of. Just SHELL the command to DOS as so.

SHELL "COPY thefile.extension thedirectoryyouwanttomoveitto"

Not that hard :D , not that fast :(

Posted: Wed Nov 17, 2004 3:55 pm
by Qcumber
also, use MOVE instead of COPY if you just want to move it. :wink:

Posted: Wed Nov 17, 2004 8:25 pm
by Nodtveidt
It's also inefficient and "wrong". :D If you can learn file functions in QB, you will be able to figure it out quite easily. Look up OPEN, GET, PUT, CLOSE. Learn to open files in BINARY mode. Learn those details, and you'll be able to figure out the rest on your own. :D

Posted: Thu Nov 18, 2004 7:25 am
by Z!re
OPEN, BINARY
OPEN, BINARY

label:
buffer$ = INPUT$(BufferLen)

PRINT buffer$;
GOTO label

CLOSE
CLOSE


Arf arf