|
yd3141128
新手上路

积分 17
发帖 7
注册 2006-9-18
状态 离线
|
『楼 主』:
谁能列举以下像%temp%、%windir%%、SystemRoot% 之类的东西?
使用 LLM 解释/回答一下
想这类表达方式的东西,还有什么,?例如:c:\Documents and Settings\Administrator\桌面\用什么表示
Last edited by yd3141128 on 2006-11-22 at 12:17 PM ]
Things like this expression, what else is there? For example: What is used to represent "c:\Documents and Settings\Administrator\桌面"
Last edited by yd3141128 on 2006-11-22 at 12:17 PM ]
|
|
2006-11-22 11:36 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
输入 set 回车
|

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-11-22 12:21 |
|
|
yd3141128
新手上路

积分 17
发帖 7
注册 2006-9-18
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
谢谢了,可我还没找到c:\Documents and Settings\Administrator\桌面\怎么表示,我 用%userorofile%\桌面,文件却拷贝到c:\桌面了
Thanks, but I haven't found how to represent c:\Documents and Settings\Administrator\Desktop\ yet. I used %userprofile%\Desktop, but the file was copied to c:\Desktop.
|
|
2006-11-22 12:30 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
Originally posted by yd3141128 at 2006-11-22 12:30:
谢谢了,可我还没找到c:\Documents and Settings\Administrator\桌面\怎么表示,我 用%userorofile%\桌面,文件却拷贝到c:\桌面了
仔细看看你的环境变量。应该是:%userprofile%\桌面。
Originally posted by yd3141128 at 2006-11-22 12:30:
Thanks, but I haven't found how to represent "c:\Documents and Settings\Administrator\Desktop" yet. I used %userorofile%\Desktop, but the file was copied to "c:\Desktop".
Take a close look at your environment variables. It should be: %userprofile%\Desktop.
|
|
2006-11-22 13:23 |
|
|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
|
2006-11-22 21:56 |
|
|
srleopard
初级用户
 
积分 29
发帖 15
注册 2006-11-21
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
经过试验,应该是"%userprofile%\桌面"
After testing, it should be "%userprofile%\Desktop"
|
|
2006-11-23 01:28 |
|
|
srleopard
初级用户
 
积分 29
发帖 15
注册 2006-11-21
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
命令行的圣经:开始/运行 hh ntcmds.chm::/ntcmds.htm
这个太历害了,找了那么多的教程,现在才知道原来教程就在身边.
The Bible of the command line: Start/Run hh ntcmds.chm::/ntcmds.htm
This is too amazing. I've looked for so many tutorials, and now I just realized that the tutorials are right at hand.
|
|
2006-11-23 01:31 |
|
|
woof
新手上路
 神話
积分 12
发帖 5
注册 2006-11-22
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
Originally posted by srleopard at 2006-11-22 12:31 PM:
命令行的圣经:开始/运行 hh ntcmds.chm::/ntcmds.htm
这个太历害了,找了那么多的教程,现在才知道原来教程就在身边.
謝謝分享,可惜沒辦法幫你加分。。。
Originally posted by srleopard at 2006-11-22 12:31 PM:
The Bible of the command line: Start/Run hh ntcmds.chm::/ntcmds.htm
This is too amazing. I've looked for so many tutorials, and now I just realized that the tutorial is right at hand.
Thanks for sharing, but I can't help you add points...
|
|
2006-11-23 04:06 |
|
|
tao0610
高级用户
    朦胧的世界
积分 579
发帖 218
注册 2006-10-24
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
%userprofile%\桌面 ,就是当前用户的桌面!
好像没有具体环境变量是指定管理员的!
%userprofile%\Desktop is the desktop of the current user!
It seems there is no specific environment variable that specifies the administrator!
|

认识自己,降伏自己,改变自己,才能改变别人! |
|
2006-11-23 05:02 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
好像没有具体环境变量是指定管理员的!
管理员就默认的 "C:\Documents And Settings\Administrator\" 吧
It seems there is no specific environment variable that specifies the administrator!
The administrator is the default "C:\Documents And Settings\Administrator\"
|

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-11-23 06:53 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
Originally posted by electronixtar at 2006-11-23 06:53:
管理员就默认的 "C:\Documents And Settings\Administrator\" 吧
看这个可以不?
"%userprofile%\..\Administrator\桌面"
Originally posted by electronixtar at 2006-11-23 06:53:
The administrator defaults to "C:\Documents And Settings\Administrator\"
Can this be seen?
"%userprofile%\..\Administrator\Desktop"
|
|
2006-11-23 13:18 |
|
|
tao0610
高级用户
    朦胧的世界
积分 579
发帖 218
注册 2006-10-24
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
管理员就默认的 "C:\Documents And Settings\Administrator\" 吧
如果只局限于管理登陆才起作用,不如直接写绝对路径。
Administrator defaults to "C:\Documents And Settings\Administrator\"
If it only works when logged in as an administrator, it's better to just write the absolute path directly.
|

认识自己,降伏自己,改变自己,才能改变别人! |
|
2006-11-23 13:38 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
Originally posted by tao0610 at 2006-11-23 13:38:
如果只局限于管理登陆才起作用,不如直接写绝对路径。
我看还是11楼的代码比较通用吧,什么用户下都可以,而你这个只能限于管理员。
Originally posted by tao0610 at 2006-11-23 13:38:
If it only works when limited to the administrator login, it is better to directly write the absolute path.
I think the code on the 11th floor is more universal. It works for any user, while yours can only be used by the administrator.
|
|
2006-11-23 14:30 |
|
|
oilio
高级用户
    前进者
积分 641
发帖 303
注册 2007-1-10
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
"%userprofile%\桌面,或者"%userprofile%"\桌面,都可以。楼主试试。
lxmxn的方法是对的,只可惜我的C盘是ntfs卷,我用cd "%userprofile\..\administrator\桌面",命令是成功的,可惜不让我进去,出来有点熟悉的“拒绝访问”四个字。<img src="images/smilies/face-sad.png" align="absmiddle" border="0">
Last edited by oilio on 2007-1-18 at 01:44 PM ]
"%userprofile%\Desktop, or "%userprofile%"\Desktop, both are okay. The owner can try.
The method of lxmxn is correct. It's a pity that my C drive is an NTFS volume. I used the command cd "%userprofile\..\administrator\Desktop", and the command was successful, but it didn't let me enter, and there came out the familiar four words "Access is denied". :(
Last edited by oilio on 2007-1-18 at 01:44 PM ]
|

我相信总有一天,总会遇到一个人可以相濡以沫、相吻以湿! |
|
2007-1-13 02:57 |
|
|
wuyugui
初级用户
 
积分 20
发帖 8
注册 2007-1-1
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
若系统装在C:\则
%USERPROFILE%指的是你的用户配置文件目录,一般是指“C:\Documents and Settings\你的用户名”这个目录
要是到"C:\Documents And Settings\Administrator\"这个目录,以Administrator登录能用%USERPROFILE%到达,要是以其他身份登录那要去掉一些字符:去掉"登录用户名"替换上"Administrator"怎么操作我还不懂,对这DOS我懂得不多!!惭愧呀!!
If the system is installed on C:\, then %USERPROFILE% refers to your user profile directory, generally referring to the directory "C:\Documents and Settings\Your username". If you go to the directory "C:\Documents And Settings\Administrator\", it can be reached with %USERPROFILE% when logged in as Administrator. If logged in with other identities, some characters need to be removed: remove "login username" and replace it with "Administrator". I still don't understand how to operate. I don't know much about this DOS!! Ashamed!!
|
|
2007-1-15 22:57 |
|