Anyone remember these? I have this command that stores the date in a variable but I don't understand what exactly is going on. Can someone break it down into an idiots guide for me?
for /f %%i in ('date /t') do (set logdate=%%i)
Printable View
Anyone remember these? I have this command that stores the date in a variable but I don't understand what exactly is going on. Can someone break it down into an idiots guide for me?
for /f %%i in ('date /t') do (set logdate=%%i)
hmm try windows help and support it has lots of batch commands
Here is what ti means:
for: Runs a specified command for each file in a set of files.
set: Displays, sets, or removes Windows environment variables.
date: Displays or sets the date.
And I believe %%i is a variable and /f and /t are comand line switches for those parameters :)
Cheers,
RyanJ
thanks all
I'm such an moron; in DOS type help for
the /f means the the 'date /t' gets treated as one cmd/item instead of two