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 09:46
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » [fixed] Why does running ghost -dd from a batch file produce a 0-byte GHSTSTAT.TXT View 1,560 Replies 0
Original Poster Posted 2010-10-05 13:24 ·  中国 湖北 武汉 电信
新手上路
Credits 18
Posts 13
Joined 2010-08-30 17:27
15-year member
UID 173270
Gender Male
Status Offline

Autoexec.bat:
@ECHO OFF
PROMPT $P$G
PATH=A:\;..
LFNFOR ON
SET DIRCMD=/4
SET HDPMI=16384
MODE CON RATE=32 DELAY=1
LH KILLER
LH DOSLFN
LH HDPMI32
LH NDOS -LFN -MOUNTALL -CP:936
NDLIST -
ECHO.
ECHO Now you are in MS-DOS 7.10 prompt.
ECHO.

cls
ghost -dd
dir GHSTSTAT.TXT

Running ghost -dd manually at the command line generates the file normally.

Solved: although it shows as 0 bytes, type GHSTSTAT.TXT does show the contents! - -!

[ Last edited by bugs on 2010-10-5 at 14:47 ]
Forum Jump: