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
Killer
Newbie
Posts: 8 Joined: Sun Oct 10, 2004 7:07 am
Post
by Killer » Fri Nov 12, 2004 8:09 pm
Is ther a way to move a file to another folder use a qbasic program
=D
Guest
Post
by Guest » Fri Nov 12, 2004 8:55 pm
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
, not that fast
Qcumber
Post
by Qcumber » Wed Nov 17, 2004 3:55 pm
also, use MOVE instead of COPY if you just want to move it.
Nodtveidt
Veteran
Posts: 826 Joined: Sun Jul 25, 2004 4:24 am
Location: Quebradillas, PR
Contact:
Post
by Nodtveidt » Wed Nov 17, 2004 8:25 pm
It's also inefficient and "wrong".
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.
Z!re
Veteran
Posts: 887 Joined: Wed Aug 04, 2004 11:15 am
Post
by Z!re » Thu Nov 18, 2004 7:25 am
OPEN, BINARY
OPEN, BINARY
label:
buffer$ = INPUT$(BufferLen)
PRINT buffer$;
GOTO label
CLOSE
CLOSE
Arf arf
I have left this dump.