-
Check if folder exists on a website
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?
-
Hi
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. 
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.
Similar Threads
-
By BhagyaLakshmi in forum ASP.NET
Replies: 3
Last Post: 09-20-2007, 11:46 AM
-
By vishnubobade in forum ASP.NET
Replies: 0
Last Post: 09-01-2006, 02:01 AM
-
By Ken in forum VB Classic
Replies: 2
Last Post: 07-01-2002, 07:48 PM
-
Replies: 5
Last Post: 12-29-2000, 05:45 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|