Mac脚本, 手机截屏.command
#!/bin/bash
#当前工作目录
workDir=$(cd $(dirname $0); pwd)
cd ${workDir}
picPath="/sdcard/screenshot_$(date "+%Y%m%d_%H_%M_%S").png"
adb shell screencap -p ${picPath} && adb pull ${picPath}
#!/bin/bash
#当前工作目录
workDir=$(cd $(dirname $0); pwd)
cd ${workDir}
picPath="/sdcard/screenshot_$(date "+%Y%m%d_%H_%M_%S").png"
adb shell screencap -p ${picPath} && adb pull ${picPath}
本文标题:Mac电脑,手机截屏.command脚本
本文链接:https://www.haomeiwen.com/subject/zpdjsdtx.html
网友评论