中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-04 07:28
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS疑难解答 & 问题讨论 (解答室) » A problem after loading NTFS in autoexec.bat (seeking help)
Printable Version  1,609 / 5
Floor1 132023 Posted 2008-10-11 16:13
新手上路 Posts 3 Credits 8
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
Floor2 132023 Posted 2008-10-11 16:19
新手上路 Posts 3 Credits 8
I added a delay after LH NTFS, but it didn't work
Floor3 lianjiang2004 Posted 2008-10-11 17:21
金牌会员 Posts 1,884 Credits 3,946
The consideration of generality in this batch processing is not comprehensive. Keep working hard.
Floor4 zhou129 Posted 2009-02-13 21:08
新手上路 Posts 3 Credits 6
I also encountered the same problem, I don't know what to do, does anyone know?
Floor5 23070205 Posted 2009-08-08 19:07
新手上路 Posts 8 Credits 15
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.
Floor6 lianjiang2004 Posted 2009-08-08 22:05
金牌会员 Posts 1,884 Credits 3,946
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.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023