ADB on Windows: output to text file?


I wonder how to output the text from adb on Windows to a textfile. I tried:
adb list packages > test.txt //gives the error: Read-only file system

when I enter a path that exists and has user write access, I get the same error, like:
adb list packages > c:\\temp\\test.txt //it won't take single backslashes at all

What is the correct way to redirect the output of adb to a text file?

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by prosacco.alfonzo
1 hour ago
Last post by oda.franecki
2 hours ago
Last post by dwolff
38 minutes ago
Last post by janessa90
2 hours ago
Last post by hgerlach
54 minutes ago
Last post by cmante
3 hours ago