Search found 11 matches
- 10 Feb 2020 04:42
- Forum: DOS Batch Forum
- Topic: Subtract files from a folder
- Replies: 1
- Views: 5641
Subtract files from a folder
Dear All I got 12,890 text files in one folder named "mrd-012020" from ftp server and after two days I again get backup from ftp server but this time I got 13,656 text files in "mrd-012020f" folder. Now I want to keep one folder only which have all unique files from both folders. Can I subtract file...
- 05 Apr 2019 07:02
- Forum: DOS Batch Forum
- Topic: merge multiple text files into one text file
- Replies: 5
- Views: 5008
Re: merge multiple text files into one text file
Ok. aGerman. I understand. I just excluded .txt from the code and its working i.e. no duplication. Thanks a lot.
- 05 Apr 2019 06:36
- Forum: DOS Batch Forum
- Topic: merge multiple text files into one text file
- Replies: 5
- Views: 5008
Re: merge multiple text files into one text file
If I exclude then how can I mention the new file name, which is "DataFile".
- 05 Apr 2019 05:47
- Forum: DOS Batch Forum
- Topic: merge multiple text files into one text file
- Replies: 5
- Views: 5008
merge multiple text files into one text file
I need to merge about 3000 text files into one file. I found following command and used it. Its working fine. for %f in (*.txt) do type "%f" >> Datafile.txt but the problem is that it creates duplication of data. For example I have two text files which have 8 and 3 lines of data simultaneously. when...
- 14 Feb 2018 03:58
- Forum: DOS Batch Forum
- Topic: Run a batch file within batch file using VBA
- Replies: 9
- Views: 8525
Re: Run a batch file within batch file using VBA
yes, rename working correctly.
- 13 Feb 2018 22:03
- Forum: DOS Batch Forum
- Topic: Run a batch file within batch file using VBA
- Replies: 9
- Views: 8525
Re: Run a batch file within batch file using VBA
Thanks for your reply.
Now I used following code:
but only first line executed i.e.
Now I used following code:
Code: Select all
@echo off
ren "F:\meter_pictures\??????rc*." *.txt
call "F:\meter_pictures\combine.bat"
Code: Select all
@echo off
ren "F:\meter_pictures\??????rc*." *.txt
- 13 Feb 2018 04:25
- Forum: DOS Batch Forum
- Topic: Run a batch file within batch file using VBA
- Replies: 9
- Views: 8525
Re: Run a batch file within batch file using VBA
I removed comment.
I also run only combine.bat file but still no result found.
Anyone can help out.
regards.
I also run only combine.bat file but still no result found.
Anyone can help out.
regards.
- 02 Feb 2018 01:18
- Forum: DOS Batch Forum
- Topic: Run a batch file within batch file using VBA
- Replies: 9
- Views: 8525
Re: Run a batch file within batch file using VBA
If I remove Comment then also same result found. How can I run second batch file within Picenquiry.bat ?
- 01 Feb 2018 22:09
- Forum: DOS Batch Forum
- Topic: Run a batch file within batch file using VBA
- Replies: 9
- Views: 8525
Run a batch file within batch file using VBA
Dear all I have two batch files named as : 1) Combine.bat 2) Picenquiry.bat The contents of Combine.bat file are as: @echo off for %%A in (*.txt) do ( echo Processing file '%%A' FOR /F "delims=" %%L in (%%A) do ( ECHO %%L%%A >> DataFile.txt ) ) and contents of Picenquiry.bat are as: @echo off ren "F...
- 13 Jul 2017 04:54
- Forum: DOS Batch Forum
- Topic: search a file(s) name having specific string
- Replies: 5
- Views: 5283
Re: search a file(s) name having specific string
Thanks penpen for taking interest. Actually we have a lot of files every month on a ftp server. These files have data about meter reading of customers. Programmers had designed tables without "Area" & "Book" fields. So these files contain data without area name and book no. I...
- 12 Jul 2017 02:07
- Forum: DOS Batch Forum
- Topic: search a file(s) name having specific string
- Replies: 5
- Views: 5283
search a file(s) name having specific string
Dear All I have a number of files. Name of these files consist "Area name" and "Book No" like 123401: in this 1234 is the name of area and 01 is Book No. I want to design a batch file which gets a string (Area Name) form user and find that book from a specific folder. Urgent help...