The excellent code below was sent to me by mpfister, and it basically lists down the directory name and the reports that were uploaded to that particular directory. The output would look like this:
1. I need help in rectifying this batch file so that it leaves a line between directories.
2. I also need help in rectifying this batch file that it accepts the full report name. (example: CTPD540_PAL-_20050516 Cross_List_Report_20050516
, CTPD960_200505, CTPD971_20050516)
3. I also need help in rectifying this Batch file that it accepts directory names that not only begin with the alphabet "P" but also with "E" or "L". It SHOULD NOT read just the first alphabet but at least the first three characters.
For example it should be:
Batch file code given to me by mpfister (i am very grateful for the code & help that you have provided. Very grateful)
If not exist %LogFile% Goto :EOF
If exist %OutFile% del %OutFile%
for /f "usebackq delims=" %%a in (`findstr /v /C:">" %LogFile%`) Do Set Line=%%a& Call :Process
If not Defined Check Goto :EOF
If /I "%Check%" == "cd P" Goto :Directory
If /I "%Check%" == "150 " Goto :File
Echo %Directory%>> %OutFile%
For /f "tokens=1,2 delims=_-." %%b in ("%File%") do Set File1=%%b& Set File2=%%c
If "%Check%" == "2" (
) Else (
I urgently need help with this batch file. I don't have the expertise in writing these scripts quickly. Would apprecaite any help.