Why specified content is not printed in log using batch script? -


i have print following content like:

filesnames collecting user abcdef in ghijkl on date: 15-10-2015 time: 12:39:13 source folder: (content missed here)

should printed in log file:

filesnames collecting user abcdef in ghijkl on date: 15-10-2015 time: 12:39:13 source folder: d:\destination\folder\

and copied file names missing.

this source:

@echo off title filenames collector setlocal enabledelayedexpansion   set hr=%time:~0,2%     set hr=%hr: =0%      set hr=%hr: =% /f "tokens=1,2 delims=#" %%a in ('"prompt #$h#$e# & echo on & %%b in (1)     rem"') (   set "del=%%a" ) echo.  set /p userinputpath=enter path: cd %userinputpath% dir /b > c:\users\%username%\filenames.txt start c:\users\%username%\filenames.txt exit :colorecho echo off <nul set /p ".=%del%" > "%~2" findstr /v /a:%1 /r "^$" "%~2" nul del "%~2" > nul 2>&1i echo.  echo files names collecting user %username% in %computername% @ %userdomain% on date: %date:~7,2%-%date:~4,2%-%date:~10,4% time: %hr%:%time:~3,2%:%time:~6,2% source folder: %userinputpath% >>\\..\filenames_by-%username%-%computername%_%date:~10,4%-%date:~4,2%-%date:~7,2%_%hr%%time:~3,2%%time:~6,2%.log 

really appreciate, if solve issue.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -