I am new to power shell , I need to create a log file with the date and timestamp , below is the script used for that purpose , I am getting the error each time i ru n it .Any help is really appreciated
For /F "tokens=2-4 delims=/ " %%a in ('date /t') do (set vardate=%%c%%a%%b)For /F "tokens=1-2 delims=/:" %%a in ("%TIME%") do (set vartime=%%a%%b)set vartime=%vartime: =0%set logfile="ETLUPD_%vardate%_%vartime%"
thanks a lot