1.screencap 报错:usage: screencap [-hp] [-d display-id] [FILENAME]
adb shell screencap -p "/data/%Date:~0,4%%time:~0,2%.png"
报错:
C:\Users\Admin>adb shell screencap -p "/data/%Date:~0,4%%time:~0,2%.png"
usage: screencap [-hp] [-d display-id] [FILENAME]
-h: this message
-p: save the file as a png.
-d: specify the display id to capture, default 0.
If FILENAME ends with .png it will be saved as a png.
If FILENAME is not given, the results will be printed to stdout.
解决:将双引号,改成单引号。
C:\Users\Admin>adb shell screencap -p '/data/%Date:~0,4%%time:~0,2%.png'
C:\Users\Admin>adb shell
run: