A small program written a few years ago, recently I dug it out when making a boot disk to play around
See if any friends can help test it
The original purpose was to write an xcopy tool that can work with DOSLFN
But I was too lazy to write too many functions, only implemented the most commonly used /s parameter
After finishing it before, I hardly tested it, so there may be some bugs
Be careful when using it (especially when adding the /M parameter)
Parameter description:
CP source
There can be multiple sources, wildcards can be used, the last parameter specifies the destination
If there is only one parameter, it is regarded as the source, the destination is the current directory, the same as DOS's COPY
/S Copy subdirectories
/M Move files (delete source after successful copy)
/J Combine files
/D Specify destination as directory, not file
/V Verify copy result
/Y Do not ask, always answer Yes
/N Do not use long filenames even in environments with long filename support
Supplementary instructions:
1. If there is no /j or /d, and it cannot be judged whether the destination is a file or a directory, a prompt will appear
2. Long filename support needs to be under Win9x/2K/XP or pure DOS with DOSLFN or LFNDOS mounted
3. When specifying the destination as a directory, non-existent directories and subdirectories can be automatically created
http://zhenlove.com.cn/cndos/fileup/files/cp.zip
[ Last edited by silveregg on 2007-3-22 at 06:47 PM ]
See if any friends can help test it

The original purpose was to write an xcopy tool that can work with DOSLFN
But I was too lazy to write too many functions, only implemented the most commonly used /s parameter
After finishing it before, I hardly tested it, so there may be some bugs
Be careful when using it (especially when adding the /M parameter)
Parameter description:
CP source
There can be multiple sources, wildcards can be used, the last parameter specifies the destination
If there is only one parameter, it is regarded as the source, the destination is the current directory, the same as DOS's COPY
/S Copy subdirectories
/M Move files (delete source after successful copy)
/J Combine files
/D Specify destination as directory, not file
/V Verify copy result
/Y Do not ask, always answer Yes
/N Do not use long filenames even in environments with long filename support
Supplementary instructions:
1. If there is no /j or /d, and it cannot be judged whether the destination is a file or a directory, a prompt will appear
2. Long filename support needs to be under Win9x/2K/XP or pure DOS with DOSLFN or LFNDOS mounted
3. When specifying the destination as a directory, non-existent directories and subdirectories can be automatically created
http://zhenlove.com.cn/cndos/fileup/files/cp.zip
[ Last edited by silveregg on 2007-3-22 at 06:47 PM ]
Recent Ratings for This Post
( 1 in total)
Click for details
| Rater | Score | Time |
|---|---|---|
| Wengier | +10 | 2007-03-22 22:01 |


