How can I do this in a batch process: assign the value returned by a function to a variable, and then create a directory based on that variable?
if exist c:\test.bat (
echo c:\test.bat exists
) else (
echo c:\test.bat does not exist
--I want to get a string from the function below, and assign that string to a variable x, but I don't know how to do this step
d:\dostools\datex -f yyyymmdd -o -1
--create a directory based on variable x
md x)
)
if exist c:\test.bat (
echo c:\test.bat exists
) else (
echo c:\test.bat does not exist
--I want to get a string from the function below, and assign that string to a variable x, but I don't know how to do this step
d:\dostools\datex -f yyyymmdd -o -1
--create a directory based on variable x
md x)
)

