Solved

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

Posted on 2007-11-14
4
764 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
  • 2
  • 2
4 Comments
 
LVL 51

Expert Comment

by:tedbilly
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:
tedbilly 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
This article will show, step by step, how to integrate R code into a R Sweave document
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

762 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now