Jump to content
Sign in to follow this  

Using _WinAPI_WriteFile for disk speed test

Recommended Posts



i am trying to figure out _WinAPI_WriteFile syntax ,my goal is to create a script that i can determine the write block size and and even throttle IO/SEC or Mbytes/sec ,finally measure disk throughput & latency .

each operation will be measured and calculated by TimerInit /TimerDiff

i wonder if _WinAPI_WriteFile is the right function to do ,if yes i would like to get help with examples.

please advice


Edited by tbaror

Share this post

Link to post
Share on other sites

Example of writing 1 MB of random crap with WriteFile()

#include <winapi.au3>



For $i=0 To $size/4-1

Local $written



Broken link? PM me and I'll send you the file!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.