Lord_Dark199

PyScript

Jan 11th, 2015
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #coding:utf-8
  2. import shutil
  3. import os
  4. f = open("c:\\System\\Apps\\config.ini").readlines()
  5.  
  6. for r in f:
  7.   z = r.split()
  8.   if z[0] == "copy":
  9.     try:
  10.       shutil.copy(z[1], z[2])
  11.     except:
  12.       pass
  13.   elif z[0] == "deld":
  14.     try:
  15.       os.rmdir(z[1])
  16.     except:
  17.       pass
Advertisement
Add Comment
Please, Sign In to add comment