How do I send a cmd line info to the desktop as a txt file. I have windows 7 and have tried this syntax. Ipconfig >%userprofile%\desktop\info.txt. and it is not working. I have tried running it as administrator. I know the syntax works as I tried it at work on windows 8 and it works fine. Am I doing something wrong? Thanks.