2011-05-20 80 views

回答

9

的Unix:

export var1=`pwd` 

DOS:

FOR /F %a IN ('pwd') DO SET var1=%a