我怎样才能得到windowWidth,windowHeight,pageWidth,pageHeight,screenWidth,screenHeight,pageX,pageY,screenX,screenY将在所有主要浏览器工作?

我已经阅读过这个帖子,但是当我将它实现到我的代码中时,它只适用于几次迭代.
我正在使用python迭代目录(让我们称之为移动目录)将主要是pdf文件(匹配唯一ID)复制到另一个目录(基目录)到匹配文件夹(具有相应的唯一ID).我开始使用,shutil.copy但如果有重复,它会覆盖现有文件.
我希望能够搜索相应的文件夹以查看该文件是否已存在,并在发生多个文件时迭代命名.
例如
这是我的代码:
import arcpy
import os
import re
import sys
import traceback
import collections
import shutil
movdir = r"C:\Scans"
basedir = r"C:\Links"
try:
#Walk through all files in the directory that contains the files to copy
for root, dirs, files in os.walk(movdir):
for filename in files:
#find the name location and name of files
path = os.path.join(root, filename)
print path
#file name and extension
ARN, extension = os.path.splitext(filename)
print ARN …Run Code Online (Sandbox Code Playgroud)