Moveing Files

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
Killer
Newbie
Posts: 8
Joined: Sun Oct 10, 2004 7:07 am

Moveing Files

Post by Killer »

Is ther a way to move a file to another folder use a qbasic program
=D
Guest

Post 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 :(
Qcumber

Post by Qcumber »

also, use MOVE instead of COPY if you just want to move it. :wink:
Nodtveidt
Veteran
Posts: 826
Joined: Sun Jul 25, 2004 4:24 am
Location: Quebradillas, PR
Contact:

Post 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
Z!re
Veteran
Posts: 887
Joined: Wed Aug 04, 2004 11:15 am

Post by Z!re »

OPEN, BINARY
OPEN, BINARY

label:
buffer$ = INPUT$(BufferLen)

PRINT buffer$;
GOTO label

CLOSE
CLOSE


Arf arf
I have left this dump.
Post Reply