Solved

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

Posted on 2007-11-14
4
769 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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
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…

626 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