Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2007-11-14
4
Medium Priority
?
770 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 1500 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

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. …
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
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…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

721 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