标题: dos 下如何获取当前路径成为变量?! [打印本页] 作者: jj65535 时间: 2009-4-19 07:31 标题: dos 下如何获取当前路径成为变量?!
系统环境MS DOS 7.1
如题!
如何得到当前的路径成为变量
[ Last edited by jj65535 on 2009-4-19 at 08:41 ]作者: junyee 时间: 2009-4-19 10:08 %cd%作者: netbenton 时间: 2009-4-19 10:24 @echo off
goto :begin
a
db "set %1="
r cx
7
w
q
:begin
debug kktemp.bat<%0.bat
cd>>kktemp.bat
call kktemp.bat cu_cd
echo %cu_cd%作者: jj65535 时间: 2009-4-19 11:37
Quote:
Originally posted by netbenton at 2009-4-19 10:24:
@echo off
goto :begin
a
db "set %1="
r cx
7
w
q
:begin
debug kktemp.bat<%0.bat
cd>>kktemp.bat
call kktemp.bat cu_cd
echo %cu_cd%
请问 还要借助 debug这程序是吗?!
是MS DOS 7.1自带那个版本的 debug吗?!
[ Last edited by jj65535 on 2009-4-19 at 11:41 ]作者: jj65535 时间: 2009-4-19 11:39
Quote:
Originally posted by junyee at 2009-4-19 10:08:
%cd%