Hi guys
I want to check if a folder exists on a sharepoint website, I have tried using the FileSystem object i.e using fs.FolderExits("http://URL") but it always returns false even if the folder exists. How can i check this, please advise.
Printable View
Hi guys
I want to check if a folder exists on a sharepoint website, I have tried using the FileSystem object i.e using fs.FolderExits("http://URL") but it always returns false even if the folder exists. How can i check this, please advise.
The web site is located on a network file server right?
Have you tried the \\servername\foldername\filename path?
the website has a URL like https://troom.watchlist.com/Scorecards/, i do not know the servername. Does this help?
You can only check for anything on a server that allows you the permissions to run the check.
Do you have the necessary permissions on this server to check for a folder?
I have the necessary permissions, but as i told earlier I am unable to check if a folder exists on a sharepoint website, I have tried using the FileSystem object i.e using fs.FolderExits("http://URL") but it always returns false even if the folder exists
Who are the administrators of the sharepoint website?
These are the people I would be asking this question to.
Did that already, they are unable to help me, they tell me they cannot provide any support regarding coding
Thanks helpful of them. :SICK:
Do you know the name of the server that Sharepoint is running from?
Do you know where on the server the folder would be if it existing?
burmer i dont have these details, and i doubt whether they will share these details with me :(
You would need those details to check.
Why do you need to check? Are you copying files to this folder?
Do you know who is responsible for creating it in the first place?
Hi Hack,
Yes i do copy files to the folder using code i use wkb.Saveas URL\filename.xls where wkb is Excel Workbook object- Note if the folder does not exist the program hangs
And normally folders are created by going on the website and clicking a new folder button and so on.
Regards
Hitesh Manglani
have you tried using ms internet control since you are asking for verification if the folder in http exist?
No, do you mean like using an Internet Explorer and trying to open the URL?
No but something like that... What I mean is you will add MS Internet Control components on your program. This component will serve as a validator of the http/folder if exist.
But he would still need to know where it is supposed to exist, otherwise, he would wind up having to search the entire hard drive of a web server.
A potentially daunting task.
Use this UNC format to access folders and files on a Sharepoint server:
\\sharepointsite.domain.com\site\documents
So, in your case, try:
\\troom.watchlist.com\Scorecards
Kevin
Hi Kevin,
That doesnt work either :(
Regards
Hitesh