0

How do I write the output ie, serial no, from the adb command:

'adb get-serialno' 

to a file?

2 Answers 2

1

On Windows: adb get-serialno >> serial.txt

Sign up to request clarification or add additional context in comments.

1 Comment

Same works for unix/linux if the file does not exist. Otherwise use only one > instead of two to overwrite.
1

On Linux or Mac:

adb get-serialno > serial.txt

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.