G
Guest
Hi All,
I need to get the output of a command and use it later in a batch file. So I
want to set the output string to a variable in the batch file. for example, I
want to set the current date to a batch variable called dd. I have tried the
following but does not work:
date /T | set /p dd=
Can anyone please help?
I need to get the output of a command and use it later in a batch file. So I
want to set the output string to a variable in the batch file. for example, I
want to set the current date to a batch variable called dd. I have tried the
following but does not work:
date /T | set /p dd=
Can anyone please help?