The batch file I wrote is as follows:
@echo off
set a=h
for /d %%f in ("c:\documents and settings\*") do set a=%%f\Cookies &@echo %a%
What I originally meant was to turn a into a string like c:\documents and settings\username\Cookies, but when I print it with the above command, the value of environment variable a still has not changed and is still the initial value h.
Question for all you experts, how exactly should this batch file be written?
@echo off
set a=h
for /d %%f in ("c:\documents and settings\*") do set a=%%f\Cookies &@echo %a%
What I originally meant was to turn a into a string like c:\documents and settings\username\Cookies, but when I print it with the above command, the value of environment variable a still has not changed and is still the initial value h.
Question for all you experts, how exactly should this batch file be written?
