Check if folder exists on a website


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 1 of 2 12 LastLast
Results 1 to 15 of 17

Thread: Check if folder exists on a website

  1. #1
    Join Date
    Feb 2009
    Posts
    8

    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.

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    The web site is located on a network file server right?

    Have you tried the \\servername\foldername\filename path?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Feb 2009
    Posts
    8

    Hi

    the website has a URL like https://troom.watchlist.com/Scorecards/, i do not know the servername. Does this help?

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    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 don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  5. #5
    Join Date
    Feb 2009
    Posts
    8
    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

  6. #6
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Who are the administrators of the sharepoint website?

    These are the people I would be asking this question to.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  7. #7
    Join Date
    Feb 2009
    Posts
    8
    Did that already, they are unable to help me, they tell me they cannot provide any support regarding coding

  8. #8
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    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?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  9. #9
    Join Date
    Feb 2009
    Posts
    8
    burmer i dont have these details, and i doubt whether they will share these details with me

  10. #10
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    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?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  11. #11
    Join Date
    Feb 2009
    Posts
    8
    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

  12. #12
    Join Date
    Jan 2009
    Posts
    10
    have you tried using ms internet control since you are asking for verification if the folder in http exist?

  13. #13
    Join Date
    Feb 2009
    Posts
    8
    No, do you mean like using an Internet Explorer and trying to open the URL?

  14. #14
    Join Date
    Jan 2009
    Posts
    10
    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.

  15. #15
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    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.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Access a website thru another website
    By BhagyaLakshmi in forum ASP.NET
    Replies: 3
    Last Post: 09-20-2007, 12:46 PM
  2. How to manage user folder in large website
    By vishnubobade in forum ASP.NET
    Replies: 0
    Last Post: 09-01-2006, 03:01 AM
  3. Replies: 2
    Last Post: 07-01-2002, 08:48 PM
  4. Quick way to check if an element exists?
    By J Andree in forum XML
    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center