| 1 |
ninoborges |
8 |
import os
|
| 2 |
|
|
|
| 3 |
|
|
#FirstDir = os.listdir(r'\\termserv1\profiles')
|
| 4 |
|
|
#SecondDir = os.listdir(r'\\termserv1\m$\WTSRV\Profiles')
|
| 5 |
|
|
FirstDir = os.listdir(r'\\ric1\1315\Printing\Dres_Prod03')
|
| 6 |
|
|
SecondDir = os.listdir(r'\\ps_mediastation\C\A-DVD_Dresden3')
|
| 7 |
|
|
FirstList = []
|
| 8 |
|
|
SecondList = []
|
| 9 |
|
|
|
| 10 |
|
|
for x in FirstDir:
|
| 11 |
|
|
Exists = '0' in x
|
| 12 |
|
|
if Exists == 1:
|
| 13 |
|
|
#print x
|
| 14 |
|
|
name = x.split('.')
|
| 15 |
|
|
#print name[0]
|
| 16 |
|
|
FirstList.append(name[0])
|
| 17 |
|
|
print FirstList
|
| 18 |
|
|
|
| 19 |
|
|
Exists = ""
|
| 20 |
|
|
|
| 21 |
|
|
#for y in SecondDir:
|
| 22 |
|
|
# Exists = '0' in y
|
| 23 |
|
|
# if Exists == 1:
|
| 24 |
|
|
# name2 = y.split('.')
|
| 25 |
|
|
# SecondList.append(name2[0])
|
| 26 |
|
|
#print SecondList
|
| 27 |
|
|
|
| 28 |
|
|
for x in FirstList:
|
| 29 |
|
|
Exists = x in SecondDir
|
| 30 |
|
|
if Exists == 1:
|
| 31 |
|
|
#print x
|
| 32 |
|
|
pass
|
| 33 |
|
|
else:
|
| 34 |
|
|
print x |