Hi, I have a python script that is supposed to check to see if a computer exists on a windows network, but python always seems to return false:
os.path.isdir("\\\\MyPCNetworkname\\")
should work, right? for some reason, if i have a trailing folder (like \\MyPCNetworkname\folderhere), then it returns true (if it exists). But not every computer the user enters is going to have a folder. Any ideas?
Thanks!
os.path.isdir("\\\\MyPCNetworkname\\")
should work, right? for some reason, if i have a trailing folder (like \\MyPCNetworkname\folderhere), then it returns true (if it exists). But not every computer the user enters is going to have a folder. Any ideas?
Thanks!