Search found 7 matches

by sark
05 Oct 2021 15:37
Forum: DOS Batch Forum
Topic: Sum of two decimal values
Replies: 5
Views: 6033

Re: Sum of two decimal values

Thanks for that.

I'm incorperating into ffmpeg scripts so will take a closer look at the best approach for my needs.

Mark
by sark
05 Oct 2021 10:41
Forum: DOS Batch Forum
Topic: Sum of two decimal values
Replies: 5
Views: 6033

Re: Sum of two decimal values

Thanks for the quick responses.

@atfon. l was reading the workaround you linked whilst you were replying. What exactly do you mean by string manipulation to recover the decimal point?

Thanks

Mark
by sark
05 Oct 2021 09:26
Forum: DOS Batch Forum
Topic: Sum of two decimal values
Replies: 5
Views: 6033

Sum of two decimal values

The below set variable outputs the sum of 6 and 2. This works fine, but only works with whole numbers. How, if possible, could I output values with decimal points. ie: 6.2+2.4 outputting 8.6.

Set /a S=6×2

%S%

Thanks

Mark
by sark
31 Aug 2021 15:51
Forum: DOS Batch Forum
Topic: File List (additional text on seperate line)
Replies: 2
Views: 2678

Re: File List (additional text on seperate line)

Thanks for that. It,s appreciated.

Mark
by sark
31 Aug 2021 03:28
Forum: DOS Batch Forum
Topic: File List (additional text on seperate line)
Replies: 2
Views: 2678

File List (additional text on seperate line)

Hi all. I have a simple bat file that generates a list of files contained within a folder (below). (for %%f in (*.*) do @echo %%f) > list.txt I can add text before or after the second %%f tag, to add text before or after the file name in my list, but I would like to add some text on a seperate line ...
by sark
22 Feb 2020 04:28
Forum: DOS Batch Forum
Topic: File List script adding filelist
Replies: 2
Views: 5948

Re: File List script adding filelist

Kicking myself for not thinking of the first option.

Thanks for that.

sark
by sark
21 Feb 2020 07:54
Forum: DOS Batch Forum
Topic: File List script adding filelist
Replies: 2
Views: 5948

File List script adding filelist

Hi all. I'm new to scripting and have been trying to solve much of what I want to achieve via the web. Mostly this is successful, but sometimes it's difficult to know what to type in the search. I have one such issue here, I'm hoping can be solved. (for %i in (*.txt) do @echo file '%i') > fileList.t...