0
我有一個程序比較文件,以查看哪些文件已經更新以及哪些文件和文件夾是新的。如何通過與操作系統的遠程桌面連接訪問文件
我在家裏和學校裏有一個名爲School
的文件夾,裏面的內容完全一樣。我的程序在我的USB上很好地訪問和比較文件,但我似乎無法找到在學校訪問我的文件的正確路徑。
[編輯]:我從我的學校網站下載了rdp
。要打開我的文檔,我連接到school.rdp
,輸入我的用戶名和密碼,然後出現窗口。
這是我的計劃開始其發現的基礎文件夾
import os
# HOME, this works
print(os.path.exists("C:/School")) # True
print(os.path.exists("C:")) # True
# SCHOOL, I've tried all of these but none of them work
print(os.path.exists("N:/School")) # False
print(os.path.exists("N:/Documents")) # False
print(os.path.exists("N:")) # False
print(os.path.exists("N:/cha-sr-003/Students$/Intake2011/11FullerT/Documents/School")) # False
print(os.path.exists("//cha-sr-003/Students$/Intake2011/11FullerT/Documents/School")) # False
print(os.path.exists("cha-sr-003")) # False
有誰知道,這將讓我來訪問遠程桌面連接上我的文件夾的路徑?如果這是不可能的,是否有其他方法可以用來訪問它們?
感謝您的幫助
你的意思是你試過'\\ cha-sr-003 \ Students $ \ Intake2011 \ 11FullerT \ Documents \ School'從瀏覽器中運行? –
這是從探險家工作的路徑嗎? –
這是一個名爲'N:\'的共享文件夾嗎? 你想尋找任何差異? – 13loodH4t