|
terse
银牌会员
    
积分 2404
发帖 946
注册 2005-9-8
状态 离线
|
『楼 主』:
路径表达方式!请教了!
使用 LLM 解释/回答一下
以下注册表文件里
1. C:\Program Files\Internet Explorer\iexplore.exe是BMP文件的默认打开方式!
假使iexplore.exe不在C盘,是不是可以有一个通用的路径表达方式导入?
2. C:\WINNT\NOTEPAD.EXE 是ASP文件的的默认打开方式,现在的系统2000,而XP是C:\WINDOWS 是否也可以有一个通用的路径表达方式导入?为什么用%WINDIR%不行呢?
请教了!
谢谢pengfei的帮助,奖励分!
Last edited by terse on 2006-9-21 at 10:41 ]
In the following registry file:
1. C:\Program Files\Internet Explorer\iexplore.exe is the default opening method for BMP files! Suppose iexplore.exe is not on the C drive, can there be a general path expression for import?
2. C:\WINNT\NOTEPAD.EXE is the default opening method for ASP files. The current system is 2000, and for XP it is C:\WINDOWS. Can there also be a general path expression for import? Why doesn't %WINDIR% work?
Asked!
Thanks to pengfei for the help, reward points!
Last edited by terse on 2006-9-21 at 10:41 ]
|
|
2006-9-20 08:08 |
|
|
pengfei
银牌会员
    
积分 1218
发帖 485
注册 2006-7-21 来自 湖南.娄底
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
楼主试试它, 为系统盘程序文件夹下的iexplorer.exe
%ProgramFiles%\Internet Explorer\iexplore.exe
The owner of the post, try it. It's iexplorer.exe in the system disk program folder
%ProgramFiles%\Internet Explorer\iexplore.exe
|

业精于勤而荒于嬉,形成于思而毁于随。 |
|
2006-9-20 08:15 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
|
2006-9-20 08:20 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
Originally posted by electronixtar at 2006-9-20 08:20:
直接 iexplore 就可以了。不信试试 开始 / 运行 iexplore http://www.google.com
这样只是在运行中行得通而已,放在批处理中就不行了,正确的做法是用start命令来打开某个文件,该命令会调用默认的打开方式来打开你那个文件的。
Originally posted by electronixtar at 2006-9-20 08:20:
Just type iexplore directly. Try it if you don't believe it. Start / Run iexplore http://www.google.com
This only works in the Run line. It doesn't work in a batch file. The correct way is to use the start command to open a certain file. This command will call the default opening method to open your file.
|

尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2006-9-20 08:36 |
|
|
terse
银牌会员
    
积分 2404
发帖 946
注册 2005-9-8
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
Originally posted by pengfei at 2006-9-20 08:15:
楼主试试它, 为系统盘程序文件夹下的iexplorer.exe
%ProgramFiles%\Internet Explorer\iexplore.exe
可以了 谢谢
第二个问题怎么办?
Originally posted by pengfei at 2006-9-20 08:15:
The owner tries it, which is iexplorer.exe in the program folder of the system disk
%ProgramFiles%\Internet Explorer\iexplore.exe
It works. Thank you. What about the second question?
|
|
2006-9-20 09:22 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
notepad可以的
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2006-9-20 09:46 |
|
|
pengfei
银牌会员
    
积分 1218
发帖 485
注册 2006-7-21 来自 湖南.娄底
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
Originally posted by terse at 2006-9-20 09:22:
可以了 谢谢
第二个问题怎么办?
试试它%systemroot%\NOTEPAD.EXE
不知道%windir%命令为什么不行, 会不会是楼主两个系统都装在一个盘导致的?
如果上面不行, 试试这一句:
set notepad=%ComSpec:~0,-16%
%notepad%NOTEPAD.EXE
Last edited by pengfei on 2006-9-20 at 10:01 ]
Originally posted by terse at 2006-9-20 09:22:
It's okay, thanks.
What about the second question?
Try this %systemroot%\NOTEPAD.EXE
I don't know why the %windir% command doesn't work. Could it be that the owner installed both systems on one disk?
If the above doesn't work, try this line:
set notepad=%ComSpec:~0,-16%
%notepad%NOTEPAD.EXE
Last edited by pengfei on 2006-9-20 at 10:01 ]
|

业精于勤而荒于嬉,形成于思而毁于随。 |
|
2006-9-20 09:52 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
因为notepad.exe在CMD的默认搜索路径中,所以无需再加路径,直接输入notepad就可以打开记事本了。
Because notepad.exe is in the default search path of CMD, so there is no need to add the path, just enter notepad to open the Notepad.
|

尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。 |
|
2006-9-20 10:06 |
|
|
terse
银牌会员
    
积分 2404
发帖 946
注册 2005-9-8
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
Originally posted by electronixtar at 2006-9-20 09:46:
notepad可以的
还是不行啊!运行里可以打开NOTEPAD.EXE,批处理也可以打开NOTEPAD.EXE,导入注册表就不行了!
Originally posted by electronixtar at 2006-9-20 09:46:
Notepad works.
Still no good! I can open NOTEPAD.EXE in the Run dialog, and the batch file can also open NOTEPAD.EXE, but it doesn't work when importing into the registry!
|
|
2006-9-20 10:10 |
|
|
terse
银牌会员
    
积分 2404
发帖 946
注册 2005-9-8
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
Originally posted by pengfei at 2006-9-20 09:52:
试试它%systemroot%\NOTEPAD.EXE
不知道%windir%命令为什么不行, 会不会是楼主两个系统都装在一个盘导致的?
如果上面不行, 试试这一句:
set notepad=%Com ...
先谢谢大虾的回复,我没有装两个系统,现在用2K的,但我有GHOST的XP系统,只是想有个注册表备份,这样的话到时候可以导入就OK了,然现在没有找到可以导入两个系统都可以用的注册表项!
Originally posted by pengfei at 2006-9-20 09:52:
Try it %systemroot%\NOTEPAD.EXE
I don't know why the %windir% command doesn't work. Could it be that the楼主 has both systems installed on one disk?
If the above doesn't work, try this line:
set notepad=%Com ...
First, thank you for the reply from the expert. I didn't install two systems. Now I'm using 2K, but I have a GHOST XP system. I just want to have a registry backup so that I can import it later. But now I haven't found a registry entry that can be used for both systems!
|
|
2006-9-20 10:14 |
|
|
pengfei
银牌会员
    
积分 1218
发帖 485
注册 2006-7-21 来自 湖南.娄底
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
Originally posted by terse at 2006-9-20 10:14:
先谢谢大虾的回复,我没有装两个系统,现在用2K的,但我有GHOST的XP系统,只是想有个注册表备份,这样的话到时候可以导入就OK了,然现在没有找删...
注册表关联的open项只需要填程序名就可以了, 系统目录下的文件路径为默认访问值. 打开NOTEPAD.EXE系统会自动在几个默认路径中搜索
Last edited by pengfei on 2006-9-20 at 10:20 ]
Originally posted by terse at 2006-9-20 10:14:
Thanks to the great experts for the reply first. I don't have two systems installed. Now I'm using 2K, but I have a GHOST XP system. I just want to have a registry backup, so that I can import it later...
For the open item associated with the registry, you only need to fill in the program name. The file path in the system directory is the default access value. When you open NOTEPAD.EXE, the system will automatically search in several default paths.
Last edited by pengfei on 2006-9-20 at 10:20 ]
|

业精于勤而荒于嬉,形成于思而毁于随。 |
|
2006-9-20 10:19 |
|
|
terse
银牌会员
    
积分 2404
发帖 946
注册 2005-9-8
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
Originally posted by pengfei at 2006-9-20 10:19:
注册表关联的open项只需要填程序名就可以了, 系统目录下的文件路径为默认访问值. 打开NOTEPAD.EXE系统会自动在几个默认路径中搜索
Last edited b ...
真的可以了 全部解决,谢谢各位大虾!可以删贴!
Originally posted by pengfei at 2006-9-20 10:19:
The Open item in the registry association only needs to fill in the program name, and the file path in the system directory is the default access value. Opening NOTEPAD.EXE, the system will automatically search in several default paths.
Last edited b ...
It's really done. All problems are solved. Thank you, great guys! Can delete the post!
|
|
2006-9-20 11:16 |
|
|
terse
银牌会员
    
积分 2404
发帖 946
注册 2005-9-8
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
Originally posted by pengfei at 2006-9-20 08:15:
楼主试试它, 为系统盘程序文件夹下的iexplorer.exe
%ProgramFiles%\Internet Explorer\iexplore.exe
请pengfei帮一忙,谢谢!昨天我试了导入还是可以的,怎么今天导入出错呢?2 只是把注册恢复到昨天没导入前!
Originally posted by pengfei at 2006-9-20 08:15:
The landlord try it, it is iexplorer.exe in the system disk program folder
%ProgramFiles%\Internet Explorer\iexplore.exe
Please help me, Pengfei, thank you! I tried importing yesterday and it was okay, but why did it go wrong when I imported today? 2 Just restore the registration to the state before importing yesterday!
|
|
2006-9-21 10:45 |
|
|
pengfei
银牌会员
    
积分 1218
发帖 485
注册 2006-7-21 来自 湖南.娄底
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
加上引号试试:
"%ProgramFiles%\Internet Explorer\iexplore.exe"
或
%systemdrive%\Program Files\Internet Explorer\iexplore.exe
Last edited by pengfei on 2006-9-21 at 10:54 ]
Try adding quotes:
"%ProgramFiles%\Internet Explorer\iexplore.exe"
or
%systemdrive%\Program Files\Internet Explorer\iexplore.exe
Last edited by pengfei on 2006-9-21 at 10:54 ]
|

业精于勤而荒于嬉,形成于思而毁于随。 |
|
2006-9-21 10:49 |
|
|
terse
银牌会员
    
积分 2404
发帖 946
注册 2005-9-8
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
不行的,看来行不通,不过 无论如何 也是谢谢的
It doesn't work. It seems it won't work, but anyway, thank you.
|
|
2006-9-21 11:36 |
|