Hey super brains! I've got a batch script that we run on a end user's PC that captures various details about the user/pc/etc. The results are echo'd out to a logfile that is saved with an html extension. Because the logfile can be a little lengthy, I was curious if there was a way to include links to "anchors" in the logfile. Here is a little snippet of the script:
SET mm=%date:~4,2%
SET dd=%date:~7,2%
SET yy=%date:~12,2%
SET hh=%time:~0,2%
SET min=%time:~3,2%
SET ss=%time:~6,2%
set $sourcepc = %computername%
SET logfile="c:\users\%username%\desktop\DIAG_%mm%%dd%%yy%_%hh%%min%%ss%_%computername%.html"
echo ===================================== > %logfile%
echo [SCRIPT DETAILS] >> %logfile%
echo ===================================== >> %logfile%
echo ^<pre^> >> %logfile%
echo TECH ASSIST RUN LOG >> %logfile%
echo Version 1.6 >> %logfile%
echo GoLiveDate 10.19.21 >> %logfile%
echo +++++++++++++++++++++++++++++++++++++ >> %logfile%
echo Script ran at: %time% %date% >> %logfile%
echo +++++++++++++++++++++++++++++++++++++ >> %logfile%
echo. >> %logfile%
echo. >> %logfile%
Keep in mind, with a local log file, any URLs referencing local files... will only work with users who are actually on the local machine or at least the same LAN.