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-04 06:15
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » A problem after loading NTFS in autoexec.bat (seeking help) View 1,605 Replies 5
Original Poster Posted 2008-10-11 16:13 ·  中国 广东 广州 越秀区 电信
新手上路
Credits 8
Posts 3
Joined 2008-10-09 19:13
17-year member
UID 127908
Gender Male
Status Offline
I want to load ntfs.exe before automatic backup
But the sentences after LH ntfs can't be executed
That is, after successfully loading ntfs.exe, it stops (and the content behind it I made a separate batch file, which can be executed manually without problems)
The following is the content of autoexec.bat
@ECHO OFF
PROMPT $P$G
PATH=A:\;..
LFNFOR ON
SET DIRCMD=/4
MODE CON RATE=32 DELAY=1
LH ntfs
LH KILLER
LH SHSUCDX /D:IDE-CD /Q /~+
LH DOSKEY
LH DOSLFN
tw /ns /np>nul
cls
echo
echo
echo
echo ==============================================================================
echo 1-Create d:\jesobak and automatically back up to this folder
echo ==============================================================================
echo 2-Create e:\jesobak and automatically back up to this folder
echo ==============================================================================
echo 3-Create f:\jesobak and automatically back up to this folder
echo ==============================================================================
echo 4-Create g:\jesobak and automatically back up to this folder
echo ==============================================================================
echo
echo
echo (Note: Supports NTFS partitions)
choice /C:1234 "Please enter your choice:"
if errorlevel 4 goto 4
if errorlevel 3 goto 3
if errorlevel 2 goto 2
if errorlevel 1 goto 1

:1
goto dghost

:2
goto eghost

:3
goto fghost

:4
goto gghost

:dghost
md d:\jesobak
ghost.exe -clone,mode=pdump,src=1:1,dst=1:2:\jesobak\bak.gho -fx -sure -z1 -rb
goto end

:eghost
md e:\jesobak
ghost.exe -clone,mode=pdump,src=1:1,dst=1:3:\jesobak\bak.gho -fx -sure -z1 -rb
goto end

:fghost
md f:\jesobak
ghost.exe -clone,mode=pdump,src=1:1,dst=1:4:\jesobak\bak.gho -fx -sure -z1 -rb
goto end

:gghost
md g:\jesobak
ghost.exe -clone,mode=pdump,src=1:1,dst=1:5:\jesobak\bak.gho -fx -sure -z1 -rb
goto end

:end
Floor 2 Posted 2008-10-11 16:19 ·  中国 广东 广州 越秀区 电信
新手上路
Credits 8
Posts 3
Joined 2008-10-09 19:13
17-year member
UID 127908
Gender Male
Status Offline
I added a delay after LH NTFS, but it didn't work
Floor 3 Posted 2008-10-11 17:21 ·  中国 安徽 马鞍山 联通
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
The consideration of generality in this batch processing is not comprehensive. Keep working hard.
Windows 一键还原
http://www.yjhy.com
Floor 4 Posted 2009-02-13 21:08 ·  中国 福建 福州 台江区 电信
新手上路
Credits 6
Posts 3
Joined 2009-01-08 23:32
17-year member
UID 136179
Gender Male
Status Offline
I also encountered the same problem, I don't know what to do, does anyone know?
Floor 5 Posted 2009-08-08 19:07 ·  中国 河北 邯郸 联通
新手上路
Credits 15
Posts 8
Joined 2008-09-05 13:20
17-year member
UID 124853
Gender Male
Status Offline
GHOST itself supports NTFS partition format, not to mention the building owner uses 1:2 to represent the partition, and the bat that can run without loading NTFS.
http://hi.baidu.com/23070205
Floor 6 Posted 2009-08-08 22:05 ·  中国 安徽 马鞍山 联通
金牌会员
★★★★
Credits 3,946
Posts 1,884
Joined 2006-01-20 13:00
20-year member
UID 49283
Gender Male
Status Offline
Originally posted by 23070205 at 2009-8-8 19:07:
GHOST itself supports NTFS partition format, not to mention the owner uses 1:2 to represent the partition, and the bat that can run without loading NTFS is used.


The key is that it is not backing up to the root directory, but to a subdirectory, so a directory must be created.
It's just that the owner's method has poor universality and cannot achieve the expected purpose.
Windows 一键还原
http://www.yjhy.com
Forum Jump: