| 
 
nre 
银牌会员
 
      nre
  
 
积分 1210 
发帖 361 
注册 2002-12-28 
状态 离线
 | 
『楼 主』:
 [求助]如何获得当前路径
 
使用 LLM 解释/回答一下
  
比如我在 c:\temp 目录下, 我如何能将这个路径附给一个变量 谁有小程序或好的方法。谢 
For example, I am in the c:\temp directory. How can I assign this path to a variable? Does anyone have a small program or a good method? Thanks 
    
 
  
  |  
                  
  
                     
Teamwork ! |   
 | 
  2004-7-21 00:00 | 
  
 | 
 | 
 
Climbing 
铂金会员
 
        网络独行侠
  
 
积分 6962 
发帖 2753 
注册 2003-4-16 来自 河北保定 
状态 离线
 | 
『第 2 楼』:
 
 
使用 LLM 解释/回答一下
  
需要用到Horst的lmod,如下:cd | lmod /L1 set curdir= > temp.bat 
call temp.bat 
del temp.bat执行完成后,当前目录会保存到curdir环境变量中。 
You need to use Horst's lmod as follows: 
cd | lmod /L1 set curdir= > temp.bat 
call temp.bat 
del temp.bat 
After execution, the current directory will be saved to the curdir environment variable. 
    
 
  
  |  
                  
  
                    偶只喜欢回答那些标题和描述都很清晰的帖子! 
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人! 
 |   
 | 
  2004-7-21 00:00 | 
  
 | 
 | 
 
nre 
银牌会员
 
      nre
  
 
积分 1210 
发帖 361 
注册 2002-12-28 
状态 离线
 | 
『第 3 楼』:
 
 
使用 LLM 解释/回答一下
  
lmod这个小程序去哪里找? 
Where can I find the lmod small program? 
    
 
  
  |  
                  
  
                     
Teamwork ! |   
 | 
  2004-7-21 00:00 | 
  
 | 
 | 
 
Climbing 
铂金会员
 
        网络独行侠
  
 
积分 6962 
发帖 2753 
注册 2003-4-16 来自 河北保定 
状态 离线
 | 
 | 
  2004-7-21 00:00 | 
  
 | 
 | 
 
JonePeng 
金牌会员
 
       D◎$ Fαп
  
 
积分 4562 
发帖 1883 
注册 2004-1-19 来自 广东广州 
状态 离线
 | 
『第 5 楼』:
 
 
使用 LLM 解释/回答一下
  
不用那么复杂!一个%CD%变量就是当前路径的变量。不信的话,可以试试echo %cd%看看。 
No need to be so complicated! The %CD% variable is just the variable for the current path. If you don't believe it, you can try echo %cd% and see. 
    
 
  
  |  
                  
  
                    ----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====---- 
    |   
 | 
  2004-7-26 00:00 | 
  
 | 
 | 
 
Climbing 
铂金会员
 
        网络独行侠
  
 
积分 6962 
发帖 2753 
注册 2003-4-16 来自 河北保定 
状态 离线
 | 
『第 6 楼』:
 
 
使用 LLM 解释/回答一下
  
以下是引用JonePeng在2004-7-26 22:56:12的发言: 
 
不用那么复杂! 
一个%CD%变量就是当前路径的变量。不信的话,可以试试echo %cd%看看。 
请你在98下打一个echo %cd%试试!  
The following is the statement made by JonePeng on 2004-7-26 22:56:12: 
 
No need to be so complicated! 
The %CD% variable is the variable for the current path. If you don't believe it, you can try echo %cd% to see.  
Please try to type echo %cd% under 98!  
    
 
  
  |  
                  
  
                    偶只喜欢回答那些标题和描述都很清晰的帖子! 
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人! 
 |   
 | 
  2004-7-26 00:00 | 
  
 | 
 | 
 
BAT 
初级用户
 
  
 
  
 
积分 177 
发帖 52 
注册 2006-6-4 
状态 离线
 | 
『第 7 楼』:
 
 
使用 LLM 解释/回答一下
  
想问一下,除了第三方工具之外,是否有其他的解决方法。 
I want to ask, besides third - party tools, is there any other solution? 
    
 
  
 |   
 | 
  2006-7-17 04:36 | 
  
 | 
 | 
 
chenall 
银牌会员
 
     
 
  
 
积分 1276 
发帖 469 
注册 2002-12-23 来自 福建泉州 
状态 离线
 | 
『第 8 楼』:
 
 
使用 LLM 解释/回答一下
  
搜一下论坛吧. 
 
echo exit|%comspec% /k prompt set runpath=$P$_|find "exit" /v>temp.bat 
call temp.bat 
del temp.bat 
  
Search the forum. 
 
echo exit|%comspec% /k prompt set runpath=$P$_|find "exit" /v>temp.bat 
call temp.bat 
del temp.bat 
  
    
 
  
  |  
                  
  
                    QQ:366840202 
http://chenall.net |   
 | 
  2006-7-17 08:10 | 
  
 | 
 | 
 
w1314ich 
中级用户
 
   
 
  
  
积分 234 
发帖 119 
注册 2007-4-22 
状态 离线
 | 
『第 9 楼』:
 
 
使用 LLM 解释/回答一下
  
echo %cd%   挺好用啊~~  如果只是在98下用不了的话那也没什么啊  现在有几个人用98的系统   有些东西还是简单点的好  不要显得太专业 
echo %cd% is quite useful~~ If it only doesn't work under 98, then it's okay. Now there are few people using 98 systems. Some things are still simpler, don't seem too professional 
    
 
  
 |   
 | 
  2007-12-4 18:33 | 
  
 | 
 | 
 
jethroso 
新手上路
 
 
 
  
  
积分 4 
发帖 4 
注册 2008-11-13 
状态 离线
 | 
『第 10 楼』:
 
 
使用 LLM 解释/回答一下
  
%cd% 在带空格的文件夹,例如桌面,似乎不行啊 
`%cd%` in folders with spaces, such as the desktop, doesn't seem to work 
    
 
  
 |   
 | 
  2010-3-16 21:55 | 
  
 | 
 | 
 
jarry0932 
初级用户
 
  
 
  
  
积分 128 
发帖 122 
注册 2009-9-21 
状态 离线
 | 
『第 11 楼』:
 
 
使用 LLM 解释/回答一下
  
桌面用"%cd%"就可以了 
The desktop can be achieved with "%cd%". 
    
 
  
 |   
 | 
  2010-3-16 23:34 | 
  
 |