Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import sys
- import msvcrt
- from subprocess import call
- def get_filepaths(directory):
- file_paths = []
- for root, directories, files in os.walk(directory):
- for filename in files:
- filepath = os.path.join(root, filename)
- file_paths.append(filepath)
- return file_paths
- full_file_paths = get_filepaths("C:\ss")
- i = 0
- while True:
- char = sys.stdin.read(1)
- if char == "q":
- call(["cmd", "C:\listfile\adb.exe -s 127.0.0.1:5555 push C:\listfile\%s.txt /data/%s.txt"%(full_file_paths[i],full_file_paths[i])])
- print full_file_paths[i]
- i = i + 1
- if i == len(full_file_paths):
- i =0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement