How to dump information from cmd to micro sd card

Hi guys,

I programmed the leonardo arduino to automatically run the "ipconfig" command on the windows cmd. But instead of just appearing on the cmd interface, I want to save that to the micro SD memory card attached to the arduino.

Anyone who can help me with this?
Thanks.

Capture.PNG

That's going to be difficult. The Arduino can't see what's on the PC screen unless something on the PC sends it to the Arduino.

For something like Linux, I would suggest you open a telnet shell and do it through that. I'm sure equivalents exist for Windows.