How to Copy Files from Basic Without Using SHELL Statement (77876)
The information in this article applies to:
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.1
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
This article was previously published under Q77876 SUMMARY
Basic has no statement to copy files from one directory, drive, or
filename to another. One method of copying files is by SHELLing to
MS-DOS and using the COPY command. You can also open files for BINARY
access and input the file one byte at a time and send it to another
file. This is essentially the same as the MS-DOS COPY command.
Note that the NAME statement will rename a file (or a directory), or
if given a different path for the second argument, will move a file to
the new destination (deleting the file's copy in the old destination).
An example is further below.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB77876 |
---|
|