14

I'm trying to do some analysis under Windows 7 as to why I can't get a Windows Experience Index (WEI) rating due to disk issues. To this end, I'm trying to run winsat from the command line with :-

winsat disk -seq -read -drive c

and

winsat disk -ran -write -n 2

but the command window is closing too quickly to be able to read the results. I've tried opening a seperate cmd window to run it in but it still insists on launching its own window to run in, closing straight away.

Any idea how I can see the output?

12

You could redirect output to a file so you can read it.

example:

winsat disk -seq -read -drive c > C:\winsatoutput.txt 2>&1

EDIT: It seems winsat has a -log switch which does this:

winsat disk -seq -read -drive -log C:\winsatoutput.txt

this way, all output including errors will be in the file C:\winsatoutput.txt.

3
  • other window still spawns and closes on finish, 0 file length on output file – Rob Cowell Jan 10 '10 at 11:55
  • I'm almost there, but the log output isn't plain ASCII. Gonna dig into it a bit – Rob Cowell Jan 10 '10 at 12:01
  • 3
    Ah, there's a readable log at c:\Windows\Performance\WinSAT that includes my command-line ones. – Rob Cowell Jan 10 '10 at 12:10
21
+50

I had the same problem but it resolved when I ran "cmd" as administrator, then typed the winsat commands in the command prompt box.

1
  • Wow, this answer should be on top, and actually answers the question. StackExchange is so dumb to not allow sorting by vote. – jdk1.0 Aug 15 '20 at 8:56
3

there is a parameter -xml , which saves the output to a xml file.

see http://technet.microsoft.com/de-de/library/cc742157(WS.10).aspx .

for example: WinSAT disk –read –ran –ransize 4096 –drive k -xml C:\test.xml

3

Open the Start menu and type cmd, then press Ctrl+Shift+Enter (or right-click it and select Run as admin) to open an elevated command-prompt. Run winsat from there and you will see the results without the window closing as soon as it finishes running.

0

Doesn't do that over here - but try:

winsat disk -seq -read -drive c & pause
3
  • Alas, that calls pause in the calling window, i.e., the cmd window that I run winsat from. – Rob Cowell Jan 10 '10 at 11:51
  • Sounds like whatever's happening is very weird indeed. – Phoshi Jan 10 '10 at 12:04
  • Yea i thought the & pause should also work.. but it calls it and only shows the output press any key to continue .. it does not actually pause. – Piotr Kula Jan 6 '12 at 16:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.