Code: Select all
echo 03-09-08 | date
the date command expects a new date in this format, and that's what i supply.
Now I want to save the current directory to a variable, but somehow this doesn't work:
Code: Select all
cd | set /p folder=
"set /p [VARNAME]=" prompts for a value to assign to VARNAME, and I'm giving it the output of cd. It refuses to work.
For some strange reason, this works:
Code: Select all
cd > tmp
set /p folder= < tmp
Thanks for any hints, I'm somewhat in the dark here