|
lp1129
初级用户
 
积分 186
发帖 92
注册 2007-3-27
状态 离线
|
『楼 主』:
[讨论]一键ghost是如何创建~1这样的深度隐藏文件夹
使用 LLM 解释/回答一下
本人超菜,实在不能理解DOS之家葛站长的一键ghost是如何创建~1这样的深度隐藏文件夹,运行一键ghost后,会在最后一个硬盘分区里建立一个~1这样的文件夹,是在DOS下建立的,备份文件C_pan.gho就存放在这里,在WINXP通过运行 F:\~1\
可以看到,或在CMD中输入
dir/a F:\~1\
才能访问这个文件夹,并看到属于系统隐藏的C_pan.gho文件。请教各位,在DOS下是如何来创建这个深度隐藏文件夹的?
以前所见过的在WINXP下创建一些隐藏、不能删除的文件夹的方法,如:
md c:\...\
md c:\123..\
md "c:\ \ "
md "c:\123 \ "
md "c:\ "
等等在DOS下都是不能用的,在NTFS格式下第一种也是不能用的。
如果在DOS下直接创建
md F:\~1
加上系统隐藏属性,在WINXP中是可以看到的,并不能深度隐藏。
Last edited by lp1129 on 2007-4-12 at 12:00 AM ]
I am very noob, really can't understand how the one - key ghost of站长 Ge from DOS Home creates a ~1 such deeply hidden folder. After running one - key ghost, a ~1 folder will be established in the last hard disk partition. It is established under DOS, and the backup file C_pan.gho is stored here. In WINXP, by running F:\~1\, you can see it, or in CMD, input dir/a F:\~1\ to access this folder and see the system - hidden C_pan.gho file. I would like to ask you all, how is this deeply hidden folder created under DOS?
The methods I have seen before to create some hidden and non - deletable folders under WINXP, such as:
md c:\...\
md c:\123..\
md "c:\ \ "
md "c:\123 \ "
md "c:\ "
etc. are all not usable under DOS, and the first one is also not usable under NTFS format.
If directly create md F:\~1 under DOS and add the system hidden attribute, in WINXP it can be seen, and it cannot be deeply hidden.
Last edited by lp1129 on 2007 - 4 - 12 at 12:00 AM ]
|
|
2007-4-12 06:18 |
|
|
tossboy
新手上路

积分 6
发帖 3
注册 2007-4-8
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
很是奇怪
我能从DOS命令行看到这个C-PAN.GHO
但是不能从本地磁盘看到
即使用attrib -s -h 这个命令也没任何结果
It's quite strange.
I can see this C-PAN.GHO from the DOS command line.
But I can't see it from the local disk.
Even using the attrib -s -h command, there's no result at all.
|
|
2007-4-12 09:41 |
|
|
lp1129
初级用户
 
积分 186
发帖 92
注册 2007-3-27
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
搜索了好多地方发现一种方法可以看到一健恢复备份的文件C-PAN.GHO
首先显示所有文件,包括系统隐藏的
在cmd中创建一个~1.文件夹,如:
F:\>md ~1..\
打开这个文件夹就能看到备份文件了
删除~1.文件夹就可以重新隐藏了
F:\>rd ~1..\
备份文件C-PAN.GHO是不会删除掉的
现在想请教的是这个 ~1文件夹在DOS下是怎么建立的。
Searched many places and found a way to see the one-key recovery backup file C-PAN.GHO.
First, display all files, including system-hidden ones.
Create a ~1. folder in cmd, for example:
F:\>md ~1..\
Open this folder to see the backup file.
Delete the ~1. folder to hide it again.
F:\>rd ~1..\
The backup file C-PAN.GHO will not be deleted.
Now I want to ask how this ~1 folder is created under DOS.
|
|
2007-4-12 10:53 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
下面是我写的DOS游戏运行系统中创建多层,长文件名目录的批处理模块
(条件: 有FIND,GET,可能还要有DOSLFN,
另外有几句WBAT, 如果你不用WBAT,就把它们及相关的去掉)
用法:
set enddir=你要的目录
call multidir.bat
********************************
multidir.bat
@echo off
:start
set lfn=%enddir%
dir "%lfn%" /w/ad|find /i "%lfn%" >nul
if not errorlevel 1 goto final
md "%lfn%" >nul
dir "%lfn%" /w/ad|find /i "%lfn%" >nul
if not errorlevel 1 goto ok
set pos=
set left=%lfn%
set right=
:toleft
get # "%left%" '\' /x >nul
set pos=%get%
get z "%lfn%" %pos% >nul
set right=%get%
get r "-" %pos% /w1 >nul
get z "%left%" /w%get% >nul
set left=%get%
dir "%left%" /w/ad|find /i "%left%" >nul
if not errorlevel 1 goto toright
goto toleft
:toright
if "%right%"=="" goto end
get # "%right%" '\' >nul
if "%get%"=="0" goto last
get r "+" %pos% /w%get% >nul
set pos=%get%
get r "-" %pos% /w1 >nul
get z "%lfn%" /w%get% >nul
set left=%get%
get z "%lfn%" %pos% >nul
set right=%get%
md "%left%" >nul
dir "%left%" /w/ad|find /i "%left%" >nul
if not errorlevel 1 goto toright
set lfn=%left%
goto fail
:last
md "%lfn%" >nul
:end
dir "%lfn%" /w/ad|find /i "%lfn%" >nul
if not errorlevel 1 goto ok
:fail
wbat box "创建目录失败!^%lfn%" 重试,返回
if errorlevel 2 goto final
goto start
:ok
wbat box "创建目录成功!^%lfn%" 继续...
:final
Below is the batch module I wrote for creating multi-level, long-filename directories in a DOS game running system
(Conditions: Have FIND, GET, may also need DOSLFN,
Also there are a few WBATs. If you don't use WBAT, just remove them and related parts)
Usage:
set enddir=The directory you want
call multidir.bat
********************************
multidir.bat
@echo off
:start
set lfn=%enddir%
dir "%lfn%" /w/ad|find /i "%lfn%" >nul
if not errorlevel 1 goto final
md "%lfn%" >nul
dir "%lfn%" /w/ad|find /i "%lfn%" >nul
if not errorlevel 1 goto ok
set pos=
set left=%lfn%
set right=
:toleft
get # "%left%" '\' /x >nul
set pos=%get%
get z "%lfn%" %pos% >nul
set right=%get%
get r "-" %pos% /w1 >nul
get z "%left%" /w%get% >nul
set left=%get%
dir "%left%" /w/ad|find /i "%left%" >nul
if not errorlevel 1 goto toright
goto toleft
:toright
if "%right%"=="" goto end
get # "%right%" '\' >nul
if "%get%"=="0" goto last
get r "+" %pos% /w%get% >nul
set pos=%get%
get r "-" %pos% /w1 >nul
get z "%lfn%" /w%get% >nul
set left=%get%
get z "%lfn%" %pos% >nul
set right=%get%
md "%left%" >nul
dir "%left%" /w/ad|find /i "%left%" >nul
if not errorlevel 1 goto toright
set lfn=%left%
goto fail
:last
md "%lfn%" >nul
:end
dir "%lfn%" /w/ad|find /i "%lfn%" >nul
if not errorlevel 1 goto ok
:fail
wbat box "Directory creation failed! ^%lfn%" Retry, Return
if errorlevel 2 goto final
goto start
:ok
wbat box "Directory creation successful! ^%lfn%" Continue...
:final
|
|
2007-4-12 10:56 |
|
|
lp1129
初级用户
 
积分 186
发帖 92
注册 2007-3-27
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
楼上高手,但你可能有点误会我的意思
我不是想创建其它目录,
只要一个如一键还原的目录~1,如:
F:\~1\
这样的目录,要求在DOS下创建的,在WINXP下是看不见的,里面存放了
GHO备份文件。
The master upstairs, but you may have a little misunderstanding of my meaning.
I don't want to create other directories.
Just a directory like one-click restore ~1, such as:
F:\~1\
This kind of directory, which is required to be created under DOS and is not visible under WINXP, and it stores GHO backup files.
|
|
2007-4-12 11:22 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
哦,
不过,深度目录就是指的多层目录
那我看一下怎么回事..
Oh,
But, the deep directory means multi-layer directories
Then I'll take a look at what's going on..
|
|
2007-4-12 11:41 |
|
|
lp1129
初级用户
 
积分 186
发帖 92
注册 2007-3-27
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
查看了一键GHOST的MDD.bat好象是这样创建这个目录的
doslfn >nul
md F:\..
md F:\~1
加载了长文件名支持,然后创建两个目录,在DOS下可以访问,
回到WINXP下就不可见了,真是绝啊
这两个目录,实际是一个目录,F:\~1
在WINXP的CMD下用DIR可以看到一个[..]目录,这个目录是不能进去的
只有用 cd ~1 可以进入这个隐藏目录
也可以 start F:\~1 打开这个目录
终于创建成功了。
I looked at the MDD.bat of One-key GHOST, it seems like this to create this directory:
doslfn >nul
md F:\..
md F:\~1
Loaded long filename support, then created two directories, which can be accessed under DOS,
In WINXP, they are not visible, really amazing.
These two directories are actually one directory, F:\~1.
In the CMD of WINXP, using DIR can see a directory, this directory cannot be entered.
Only by using cd ~1 can enter this hidden directory.
Also can start F:\~1 to open this directory.
Finally created successfully.
|
|
2007-4-12 13:19 |
|
|
lp1129
初级用户
 
积分 186
发帖 92
注册 2007-3-27
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
Originally posted by GOTOmsdos at 2007-4-11 09:56 PM:
下面是我写的DOS游戏运行系统中创建多层,长文件名目录的批处理模块
(条件: 有FIND,GET,可能还要有DOSLFN,
另外有几句WBAT, 如果你不用WBAT,就把它们及 ...
多谢GOTOmsdos出手相助,您就一句
“可能还要有DOSLFN”
让我茅塞顿开啊。
在DOS下运行
DOSLFN
md F:\..
md F:\~1
有兴趣的朋友不仿一试。
Originally posted by GOTOmsdos at 2007-4-11 09:56 PM:
The following is the batch processing module I wrote to create multi-layer, long filename directories in the DOS game running system
(Conditions: there is FIND, GET, may also need DOSLFN,
In addition, there are a few WBATs. If you don't use WBAT, just remove them and...)
Thank you, GOTOmsdos, for your help. Just the sentence
"may also need DOSLFN"
was a real eye-opener for me.
Run under DOS
DOSLFN
md F:\..
md F:\~1
Friends who are interested might as well give it a try.
|
|
2007-4-12 13:37 |
|
|
htysm
高级用户
   
积分 866
发帖 415
注册 2005-12-4
状态 离线
|
|
2007-4-13 00:10 |
|
|
wmjm
初级用户
 
积分 25
发帖 13
注册 2007-2-23
状态 离线
|
|
2007-4-13 02:04 |
|
|
jianlichuan
新手上路

积分 4
发帖 2
注册 2007-4-13
状态 离线
|
|
2007-4-13 05:49 |
|
|
drake
初级用户
 
积分 38
发帖 15
注册 2007-2-10
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
我在DOS下运行
在DOS下运行
DOSLFN
md F:\..
md F:\~1
其中 DOSLFN。EXE执行完成
MD F:\~1完成
但是md f:\..却提示说Unable to create directory
请问我错在哪里了
I ran under DOS
Running under DOS
DOSLFN
md F:\..
md F:\~1
Among them, the DOSLFN. EXE execution is completed
MD F:\~1 is completed
But md f:\.. prompts "Unable to create directory"
Where did I go wrong
|
|
2007-4-13 13:30 |
|
|
drake
初级用户
 
积分 38
发帖 15
注册 2007-2-10
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
另外在WINXP下运行的话
执行整条的批处理会形成一个~1的目录。但是并不能隐藏
In addition, when running under WINXP, executing the entire batch file will form a ~1 directory. But it cannot be hidden
|
|
2007-4-13 13:49 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
这可能是DOS的基础知识吧?
..\ 和 .\是系统自动赋予的(在LINUX也是一样)
..\ 表示上一层目录
.\ 表示本层目录
在WIN的图形状态, 它们是不可见的,在命令行可以
但也有区别:
在DOS:
可以 CD.. 也可 CD ..
但在LINUX:
只能 CD ..
要隐藏:
ATTRIB +H 目录
详细,可查看:
ATTRIB /?
Last edited by GOTOmsdos on 2007-4-13 at 10:28 PM ]
This might be basic knowledge of DOS?
..\ and .\ are automatically assigned by the system (the same in LINUX)
..\ means the upper-level directory
.\ means the current-level directory
In the graphical state of WIN, they are not visible, but in the command line they are.
But there are also differences:
In DOS:
You can CD.. or CD ..
But in LINUX:
Only CD ..
To hide:
ATTRIB +H directory
For details, you can view:
ATTRIB /?
Last edited by GOTOmsdos on 2007-4-13 at 10:28 PM ]
|
|
2007-4-13 22:23 |
|
|
drake
初级用户
 
积分 38
发帖 15
注册 2007-2-10
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
老大,您可能误会我的意思了,这贴子楼主的本意是想在F盘建立一个在DOS下能看到WIN下看不到的隐藏目录,和矮人的ARGO。。一个意思,不过矮人的可以在WIN下看得到,他是想建立一个比矮人还要强的目录。
关于..这个东西我知道是系统自动赋于的。
但是目前的关键是要在f:\建这种目录。怎么建这个问题
按
Boss, you may have misunderstood my meaning. The original intention of the thread starter is to create a hidden directory on drive F that can be seen under DOS but not under Windows, similar to the dwarf's ARGO.. The dwarf's can be seen under Windows, and he wants to create a directory stronger than the dwarf's.
I know that.. is automatically assigned by the system.
But the current key is to create such a directory on f:\. The problem is how to create it.
According to
|
|
2007-4-13 22:32 |
|