12-10-2004, 04:16 AM
dose anyone no of a easy way to move a file to a new location?
..
move a file
|
12-10-2004, 05:09 AM
you may want to use a shell command
[syntax="qbasic"]SHELL ""[/syntax] I'm not sure of the move file command, but if you search for it, you should get it wasily enough otherwise, just open the file, and create a new file in teh new directory, then copy contents into new file, KILL the old file Oz~
12-10-2004, 05:12 AM
ok, I got it
[syntax="qbasic"]copy [source] [dest][/syntax] Code: INPUT "File To Move: ", $file Oz~ [EDIT] This is where I got the stuff, if you want to do more complex things: http://www.easydos.com/copy.html
12-10-2004, 05:46 AM
Or, you could just use QBs builtin move function.
Code: NAME "afile.txt", "folder\moved.txt"
12-10-2004, 07:19 AM
Several years ago there was no MOVE command in DOS, and you had to use a move utility. Now, there is a MOVE. Get on the command line, and enter this:
MOVE /? That will tell you the syntax. Do a few tests. Now you're ready to perform a MOVE within your program's SHELL command. *****
12-12-2004, 09:29 PM
No problem, you're welcome.
12-13-2004, 06:12 AM
Ok, hope you get it to work like you want.
*****
12-14-2004, 11:20 PM
notta prob
|
« Next Oldest | Next Newest »
|