Solved

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

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
running netsh advfirewall set rule on multiple computers 3 36
Need a good Angular tutorial 5 72
Some AHK commands fail in Microsoft OneNote 5 36
Sharepoint 2010 Auditing 4 20
This article will show, step by step, how to integrate R code into a R Sweave document
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

867 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

19 Experts available now in Live!

Get 1:1 Help Now