1 for /f "tokens=2,*" %%i in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Desktop"') do (2 set desk=%%j3 )4 date/t >>%desk%\log.txt5 time/t >>%desk%\log.txt6 ping -n 5 192.168.1.1 >>%desk%\log.txt7 time/t >>%desk%\log.txt 8 start %desk%\log.txt9 exit