标题: %文件夹%是什么意思啊
[打印本页]
作者: b102588
时间: 2007-5-11 20:45
标题: %文件夹%是什么意思啊
为什么批处理中 象del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" Documents and Settings\用户名"%要用userprofile% 表示呢 还有%文件夹%什么意思啊 怎么设置啊 谢谢我是个菜鸟 谢谢了
作者: b102588
时间: 2007-5-11 20:59
谢谢帮帮我啊 谢谢了
作者: lxmxn
时间: 2007-5-11 21:59
这个是命令行环境变量,可以用set命令来查看和设置环境变量。
你输入set userprofile 就可以查看它的值了,%Userprofile% 表示 Userprofile 的值,批处理中可以用%UserProfile%直接表示它所指的值。
给个简单的示例
Quote: |
set a=www.cn-dos.net
echo %a% |
|
作者: Michael
时间: 2007-5-11 22:00
%userprofile%,表示userprofile的值。
如果a=3,那么3就可以用%a%替换。
试下:echo %userprofile%,即可查看userprofile的值。
作者: b102588
时间: 2007-5-12 22:45
哦 谢谢了