hello
finally i used following code can some one plz tell me how i can append the value of g in p variable.
for /f "tokens=1-10 delims=\" %%1 in ('cd') do (
set p=%%1
for %%G in (%%1, %%2, %%3, %%4, %%5, %%6, %%7, %%8, %%9, %%10) do (
if %%G==test echo %p%
set p=.................
echo %%G
)
)