Search found 6 matches
- 13 Jan 2015 03:17
- Forum: DOS Batch Forum
- Topic: Breaking for loop
- Replies: 1
- Views: 1675
Breaking for loop
I need to check for a file for the word - progress and only if not found progress to the next part. So I wrote this code: SET LOGPATH=F:\Myfolder\LOG echo *******Starting batch**********%DATE%****%TIME%>>%LOGPATH%\Batchlog.log for /l %%g in (1, 1, 8) do ( findstr "progress" %LOGPATH%\Applo...
- 10 Jan 2015 04:55
- Forum: DOS Batch Forum
- Topic: Difference between two text files
- Replies: 1
- Views: 1575
Difference between two text files
I am generating output from a system which writes to a text file in this format: Headline Headline Headline Headline2 Headline2 Headline2 Describe11 Describe21 Describe31 100 200 300 Describe32 200 400 500 Describe33 700 800 650 Describe34 467 445 245 Describe12 Describe22 Describe31 100 200 300 Des...
- 12 Dec 2014 03:33
- Forum: DOS Batch Forum
- Topic: Extract number from text and calculate
- Replies: 9
- Views: 3992
Re: Extract number from text and calculate
If you have XYX.BAT >TEST.LOG in a batch script, then it transfers control to XYZ.BAT, and never returns. If you want to return to your original script, then you need to use CALL XYZ.BAT >TEST.LOG. I'm not sure what you mean by JREPL TEST.LOG. Dave Benham Thanks it works JREPL TEST.LOG was just to ...
- 10 Dec 2014 06:12
- Forum: DOS Batch Forum
- Topic: Extract number from text and calculate
- Replies: 9
- Views: 3992
Re: Extract number from text and calculate
Did you look at the JREPL solution? It works perfectly well. The output can be directed to a file using /O OUTFILE.TXT, or by redirection. The format of the output can easily be changed. I tried it but cant seem to get the command working through a bat file. The formatting goes haywire and it says ...
- 09 Dec 2014 01:01
- Forum: DOS Batch Forum
- Topic: Extract number from text and calculate
- Replies: 9
- Views: 3992
Re: Extract number from text and calculate
Sorry guys for the late reply. I need the output in a text file which will be emailed to a group. There is no restriction on whether VB/Powershell needs to be used.
Edit: @Squashman - there is file size total information for xxx file type but got commented out. I need only the Grand Total.
Edit: @Squashman - there is file size total information for xxx file type but got commented out. I need only the Grand Total.
- 08 Dec 2014 06:24
- Forum: DOS Batch Forum
- Topic: Extract number from text and calculate
- Replies: 9
- Views: 3992
Extract number from text and calculate
We have a native program which outputs logs in this format: Block Compression Ratio : 0.005999058 Average Clustering Ratio : 1 Average Fragmentation Quotient : 7.236046 Free Space Recovery is Needed : No Estimated Bytes of Recoverable Free Space : 0 ListFiles: ----- xxx File Information ----- xx Fil...