China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-15 17:05
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » [Help] Want to copy some files (folders) from the CD-ROM to the hard disk after GHOST! View 1,129 Replies 1
Original Poster Posted 2009-09-21 11:43 ·  中国 山东 德州 电信
新手上路
Credits 9
Posts 3
Joined 2007-03-15 06:36
19-year member
UID 81799
Gender Male
Status Offline
In the GHOST software image file on a typical GHOST CD, there are two batch files that complete the GHOST work! The batch files are as follows:
——————————autoexec.bat————————
@ECHO OFF
SHSUCDX /D:?PATACD01 /D:?SATACD01 /D:?SATACD02 /D:?SATACD03
findcd /s>nul
call findcdr "ghost.exe" C D E F G H I J K L M N O P Q R S T U V W X Y Z
%CDROM%:
ghost -nousb -clone,mode=pload,src=HHsp3.gho:1,dst=1:1 -crcignore -sure -fx
grub --config-file="root (hd0,0);chainloader +1"

————————————FINDCDR.BAT——————————
@echo off
set file=%1
:FCDR
if "%CDROM1%"=="%2:" goto SCDR
shift
goto FCDR
:SCDR
cda %2:>nul
IF errorlevel 1 goto next
if not exist %2:\%FILE% goto next
set cdrom=%2
goto end
:next
if "%2"=="Z" goto end
shift
goto SCDR
:end

——————————————————————
When the two batch files above run, they get the drive letter of the CD-ROM, but not the drive letter of the hard disk. The system files are copied using GHOST.exe!!!
Now I want, after GHOST is completed, to copy a few more files from the CD to the first partition of the hard disk. How can I do that......

Please give me some pointers, experts!!! Thanks!!!!
Floor 2 Posted 2009-10-06 16:53 ·  中国 北京 电信
版主
★★★
操作系统爱好者
Credits 1,113
Posts 392
Joined 2002-11-11 00:00
23-year member
UID 228
Gender Male
Status Offline
The rough idea is:

If the system partition is NTFS, you need to load NTFS4DOS
Determine the drive letter of the system partition based on a characteristic file
Copy the files from the CD to the system partition
DOS之家 http://doshome.com 站长 葛明阳
Forum Jump: