Solved

Need asp script to create new directory  sharepoint ( \\companyweb)

Posted on 2007-11-14
4
768 Views
Last Modified: 2008-02-01
Hi,
 I need help on a asp script (not .net) to create automaticly a new directory in my  \\companyweb\projects site.
like:  
\\companyweb\projects\client1
\\companyweb\projects\client2
\\companyweb\projects\client3
etc.
everytime the the script is  executed

I'm running SBS 2003 and the script has to be executed from outside sharepoint , meaning I have a page " c:\Inetpub\wwwroot\mysite\myasppage.asp that execute the script.
can anybody help me Please.

thanks,







0
Comment
Question by:tv2029
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 20296652
Sharepoint doesn't actually have physical folders.  They are logical folders generated on the fly from data in the content database.

The only way to manage folders is using the Sharepoint API.  That is non-trivial and requires that the computer running any programs written to use the API can only be run on computers with Sharepoint installed.  Sharepoint 2003 and ASP do not play well together.  It can be done but it's tricky.
0
 

Author Comment

by:tv2029
ID: 20297112
Hi tedbilly.
thanks for responding to my question.

OK I understand that,

I could resolve my problem on an other way by existing the sharepoint database direct
but would it be possible ( and save ) to  access the sharepoint database direct by SQL and if yes how?

thanks in advance
tv2029


0
 

Author Comment

by:tv2029
ID: 20297253
existing  = accessing
sorry
0
 
LVL 51

Accepted Solution

by:
Ted Bouskill earned 500 total points
ID: 20300182
Basically accessing the database directly is very dangerous.  They use a very complex schema and a lot of content is stored in binary blobs.  I wouldn't recommend it.

I looked at the web services that are available (I'm assuming you have WSS 2.0 in SBS 2003) and none seem to give that capability.  http://msdn2.microsoft.com/en-us/library/aa136717.aspx

There might be stored procedures available in the database for adding folder but it's risky because if you use them incorrectly you could destroy your Sharepoint site.

You might want to consider reading some articles on how to integrate ASP pages with Sharepoint.  That is possible and would then give you access to the Sharepoint API within the ASP pages.  Search Microsoft for integrating ASP with Sharepoint.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Access Web App or PowerApp 29 364
How Do I Widen a Column in a SharePoint 2013 List 2 65
sharepoint 2013 can't delete BDC service application 10 34
Powershell - Setting GPO 8 50
Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question