Hi leandroct and welcome.
Before posting can you please read the rules found here
- in particular, rule 15 which states that "Threads that have been inactive (no new posts) for one month or more should be considered archive-only and should be left alone (except by the thread starter). In some cases it may be acceptable to reopen a thread but the moderators have the final say. If your question is similar to another one add a link in your thread back to the older one and explain the relevance to yours." Necroposting is considered bad etiquette and most users will tend to ignore these posts as a result.
I suggest you create a new thread and link back to this one as the rules suggest. I would also point you in the direction of MSDN and WMI (Win32) structure and classes. A combination of these should help find the info you want.
One question would be though, why do you need to send keys to a text file? Could you not simply open the document within your program saving all this hastle?
Artificial Intelligence is no match for natural stupidity
Last edited by Flyguy; 03-21-2012 at 03:21 AM.