Search found 16 matches

by md73code
04 Oct 2017 16:30
Forum: DOS Batch Forum
Topic: .bat file to average 2 columns in .csv file, and print results to the file name.
Replies: 22
Views: 15749

Re: .bat file to average 2 columns in .csv file, and print results to the file name.

IMHO you have a fundamental confusion here that is reflected in the topic title and in your last phrase ("should print to the data to .csv filename"). The "print result" phrase means display or show a text in the screen . The command used to print/display/show results in the scr...
by md73code
25 Sep 2017 12:03
Forum: DOS Batch Forum
Topic: .bat file to average 2 columns in .csv file, and print results to the file name.
Replies: 22
Views: 15749

Re: .bat file to average 2 columns in .csv file, and print results to the file name.

Hi Squashman, I was hoping I was not going to be asked to decipher some of the code here a lot of the code that has ben used so far on this topic is so above and beyond my simple .bat file skills. From looking at that line I can see 2 parts, "%%f" and "%%~Nf_!col7!-!avg7:~-7,1!.!avg7...
by md73code
22 Sep 2017 11:20
Forum: DOS Batch Forum
Topic: .bat file to average 2 columns in .csv file, and print results to the file name.
Replies: 22
Views: 15749

Re: .bat file to average 2 columns in .csv file, and print results to the file name.

You are right. I will take more of an initiative to try and learn/understand the code being provided here. I'll write back when I have a better grasp and understanding of the solutions and update the thread with the changes I made to get this working. Thanks.
by md73code
22 Sep 2017 10:16
Forum: DOS Batch Forum
Topic: .bat file to average 2 columns in .csv file, and print results to the file name.
Replies: 22
Views: 15749

Re: .bat file to average 2 columns in .csv file, and print results to the file name.

Antonio, thank you for outlining the details required from me when writing problems on the forums. I will pay closer attention to the information that is required from me in order to acquire proper support from this community. I tried your code and placed the .bat file in the same directory as my ....
by md73code
21 Sep 2017 09:33
Forum: DOS Batch Forum
Topic: .bat file to average 2 columns in .csv file, and print results to the file name.
Replies: 22
Views: 15749

Re: .bat file to average 2 columns in .csv file, and print results to the file name.

Thank you Steffen. Your code works very well as it creates a .txt file with all the .csv runs with it's averages! Very useful, thank you very much! Antonio, thank you for outlining the details required from me when writing problems on the forums. I will pay closer attention to the information that i...
by md73code
19 Sep 2017 11:06
Forum: DOS Batch Forum
Topic: .bat file to average 2 columns in .csv file, and print results to the file name.
Replies: 22
Views: 15749

Re: .bat file to average 2 columns in .csv file, and print results to the file name.

Your assumptions of my .csv file are absolutely spot on. I'm sorry for not providing an example of it, I will do a better job providing examples for future posts. I will try your .bat files and update here with the results. Thanks for your efforts! Here is an example of the .csv file and I've also ...
by md73code
18 Sep 2017 14:56
Forum: DOS Batch Forum
Topic: .bat file to average 2 columns in .csv file, and print results to the file name.
Replies: 22
Views: 15749

Re: .bat file to average 2 columns in .csv file, and print results to the file name.

Hi, yes I would rather do this in .bat format since I am already using a batch script to run my test 12x times with different benchmark settings. Post processing the .csv files is a little tedious.
by md73code
18 Sep 2017 12:43
Forum: DOS Batch Forum
Topic: .bat file to average 2 columns in .csv file, and print results to the file name.
Replies: 22
Views: 15749

Re: .bat file to average 2 columns in .csv file, and print results to the file name.

Not sure. I guess I need to calculate the column average like from this post:
https://unix.stackexchange.com/question ... ion-in-csv

and then write the results at the end of the particular .csv file name.
by md73code
14 Sep 2017 16:11
Forum: DOS Batch Forum
Topic: .bat file to average 2 columns in .csv file, and print results to the file name.
Replies: 22
Views: 15749

.bat file to average 2 columns in .csv file, and print results to the file name.

Hi everyone, I'm running a test which outputs numerous .csv files (around 12). I need to average out the data in column G (7) and H (8). I'd then like to print the averages to a file with the title of column G (7) CMAA and column H (8) TAA. I'd prefer to print the title with average at the end of th...
by md73code
27 Jul 2016 13:02
Forum: DOS Batch Forum
Topic: Help writing a .bat file to launch a windows script.
Replies: 13
Views: 8544

Re: Help writing a .bat file to launch a windows script.

Yes my runas command is not working. With that command I just want to run this .bat file as Administrator.
by md73code
27 Jul 2016 10:56
Forum: DOS Batch Forum
Topic: Help writing a .bat file to launch a windows script.
Replies: 13
Views: 8544

Re: Help writing a .bat file to launch a windows script.

TIMEOUT worked! But the Timeout countdown is happening in a new CMD window. I need the timeout to happen in the original window that we call "log.cmd" on. and then call "log.cmd" again after the timeout.
by md73code
27 Jul 2016 10:05
Forum: DOS Batch Forum
Topic: Help writing a .bat file to launch a windows script.
Replies: 13
Views: 8544

Re: Help writing a .bat file to launch a windows script.

My fault. I changed your cmd /k to cmd /c. You just have to change it back. Regards aGerman Thank you! This takes me to my next problem. While the CMD window is open i need it to wait for 45 seconds and then i need it to send "log.cmd" again to stop the GPUView capture. Heres my non worki...
by md73code
26 Jul 2016 14:54
Forum: DOS Batch Forum
Topic: Help writing a .bat file to launch a windows script.
Replies: 13
Views: 8544

Re: Help writing a .bat file to launch a windows script.

Thanks that works! But is there a way to keep the CMD Prompt window open after the script has executed?
by md73code
26 Jul 2016 12:34
Forum: DOS Batch Forum
Topic: Help writing a .bat file to launch a windows script.
Replies: 13
Views: 8544

Help writing a .bat file to launch a windows script.

I'm trying to create a simple .bat file to run GPUView with a click of a icon. I need to run "log.cmd" from the "C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\gpuview" directory in an Administrativs CMD Prompt. I dont have much experience with .bat files so a...