Thank you. This is working perfectly fine. how to write the the file name to a log file, which is not found in the AllReports folder?
say a.pdf , b.pdf does not exist in AllReports folder, then error.log will be updated as filename not found.
Search found 51 matches
- 23 Jan 2018 14:30
- Forum: DOS Batch Forum
- Topic: read a file and search the content in another folder, copy the same to another folder
- Replies: 21
- Views: 12890
- 22 Jan 2018 16:58
- Forum: DOS Batch Forum
- Topic: read a file and search the content in another folder, copy the same to another folder
- Replies: 21
- Views: 12890
read a file and search the content in another folder, copy the same to another folder
Hi, In a notepad, there are several .pdf filenames. Batch would read the file , line by line, take each file name, search for the same file name in a different folder , if found , it would copy the same file and put in a different folder. Say daily_report.txt has a.pdf, b.pdf, c.pdf. Now batch would...
- 13 Jan 2018 14:16
- Forum: DOS Batch Forum
- Topic: removing dates from filenames
- Replies: 8
- Views: 7143
Re: removing dates from filenames
so super. Thank you a bunch. It worked so well. have a nice one.
- 12 Jan 2018 14:04
- Forum: DOS Batch Forum
- Topic: removing dates from filenames
- Replies: 8
- Views: 7143
Re: removing dates from filenames
Hi, In response to above, I want to convert these pdfs to text. I have the pdftotext.exe in say xpdf folder which can convert by pdftotext abc.pdf abc.txt and it would convert it to txt. How can I go to xpdf folder to use pdftotext.exe and convert the files in "alltextfiles" folder? folder allpdffil...
- 12 Jan 2018 12:16
- Forum: DOS Batch Forum
- Topic: removing dates from filenames
- Replies: 8
- Views: 7143
Re: removing dates from filenames
Thank you. This worked perfectly fine.
- 10 Jan 2018 15:35
- Forum: DOS Batch Forum
- Topic: removing dates from filenames
- Replies: 8
- Views: 7143
removing dates from filenames
Hi,
I have below set of files. How to remove the dates from the file name?
WTIN_PEG_FX_Wires-en-us_2017-12-20T024722674Z.pdf
WTIN_PEG_BX_2017-12-20T024722674Z.pdf
W_P_B_2017-12-20T024722674Z.pdf
Output should be
WTIN_PEG_FX_Wires-en-us.pdf
WTIN_PEG_BX.pdf
W_P_B.pdf
I have below set of files. How to remove the dates from the file name?
WTIN_PEG_FX_Wires-en-us_2017-12-20T024722674Z.pdf
WTIN_PEG_BX_2017-12-20T024722674Z.pdf
W_P_B_2017-12-20T024722674Z.pdf
Output should be
WTIN_PEG_FX_Wires-en-us.pdf
WTIN_PEG_BX.pdf
W_P_B.pdf