김가영

PATH에서 user 폴더 환경변수로 수정

1 @echo 1 @echo
2 -cd C:\Users\rkdud\Desktop\batch_file 2 +cd C:\Users\%USERNAME%\Desktop\batch_file
3 -adb devices > C:\Users\rkdud\Desktop\batch_file\device.csv 3 +adb devices > C:\Users\%USERNAME%\Desktop\batch_file\device.csv
4 -adb shell dumpsys alarm > C:\Users\rkdud\Desktop\batch_file\alarm.csv 4 +adb shell dumpsys alarm > C:\Users\%USERNAME%\Desktop\batch_file\alarm.csv
5 -adb shell ps -A > C:\Users\rkdud\Desktop\batch_file\process.csv 5 +adb shell ps -A > C:\Users\%USERNAME%\Desktop\batch_file\process.csv
6 -adb shell uptime > C:\Users\rkdud\Desktop\batch_file\uptime.csv 6 +adb shell uptime > C:\Users\%USERNAME%\Desktop\batch_file\uptime.csv
7 -adb shell getprop ro.product.model > C:\Users\rkdud\Desktop\batch_file\model.csv 7 +adb shell getprop ro.product.model > C:\Users\%USERNAME%\Desktop\batch_file\model.csv
8 -adb shell getprop ro.build.version.release > C:\Users\rkdud\Desktop\batch_file\sdk_version.csv 8 +adb shell getprop ro.build.version.release > C:\Users\%USERNAME%\Desktop\batch_file\sdk_version.csv
9 -adb shell getprop ro.build.version.sdk > C:\Users\rkdud\Desktop\batch_file\android_version.csv 9 +adb shell getprop ro.build.version.sdk > C:\Users\%USERNAME%\Desktop\batch_file\android_version.csv
10 adb install -r app-release.apk 10 adb install -r app-release.apk
11 start cmd.exe /k "node data.js" 11 start cmd.exe /k "node data.js"
12 adb shell am start -n com.example.dataextraction/com.example.dataextraction.LoadingActivity 12 adb shell am start -n com.example.dataextraction/com.example.dataextraction.LoadingActivity
......