Good day!

I am looking for a sample script that can be used within a VB.NET/C#
application for uploading documents to a specific folder within a document
library.

Specifically, I have several reports that are generated daily. These reports
must be uploaded to the current day's older, Monday, Tuesday, etc. These
folders contain the same reports but from the previous week so the existing
files need to be overwritten (or deleted before uploading the new versions).
The upload process must be automated so that it can be scheduled.

Can anyone provide a sample script or point me to the location of a specific
script that will solve this problem?

--
Respectfully,

Andrew Corley, MCSD, MCDBA

Re: Autmoted upload of document to SharePoint by Mike

Mike
Thu Sep 23 11:20:57 CDT 2004

If it weren't for the folder aspect (why don't you use different document
libraries instead?), the following would work.

----

As these are documents you could do the reverse of a suggestion that is
lower down.

I.e. specify the document library as a local drive by using Net Use (needs
Office 2003 on the client where this is happening and paths to the doc lib
without spaces is useful).

Then create scheduled batch files to do the copying of the correctly named
documents to the (local drive) document library.

(I don't know whether this would work with folders - you could try the
principle out with one)

Mike Walsh, Helsinki, Finland
WSS FAQ at http://wss.collutions.com
Please reply to the newsgroup

"Andrew Corley, MCSD, MCDBA" <eacorley@hotmail.com> wrote in message
news:C2DEBC17-2D8B-4C51-8FF6-4975618A2A88@microsoft.com...
> Good day!
>
> I am looking for a sample script that can be used within a VB.NET/C#
> application for uploading documents to a specific folder within a document
> library.
>
> Specifically, I have several reports that are generated daily. These
> reports
> must be uploaded to the current day's older, Monday, Tuesday, etc. These
> folders contain the same reports but from the previous week so the
> existing
> files need to be overwritten (or deleted before uploading the new
> versions).
> The upload process must be automated so that it can be scheduled.
>
> Can anyone provide a sample script or point me to the location of a
> specific
> script that will solve this problem?
>
> --
> Respectfully,
>
> Andrew Corley, MCSD, MCDBA



Re: Autmoted upload of document to SharePoint by eacorley

eacorley
Thu Sep 23 12:39:05 CDT 2004

Mike,

How did you find this method?!? I have looked almost everywhere and no luck.

This looks like it will work great for us!


"Mike Walsh" wrote:

> If it weren't for the folder aspect (why don't you use different document
> libraries instead?), the following would work.
>
> ----
>
> As these are documents you could do the reverse of a suggestion that is
> lower down.
>
> I.e. specify the document library as a local drive by using Net Use (needs
> Office 2003 on the client where this is happening and paths to the doc lib
> without spaces is useful).
>
> Then create scheduled batch files to do the copying of the correctly named
> documents to the (local drive) document library.
>
> (I don't know whether this would work with folders - you could try the
> principle out with one)
>
> Mike Walsh, Helsinki, Finland
> WSS FAQ at http://wss.collutions.com
> Please reply to the newsgroup
>
> "Andrew Corley, MCSD, MCDBA" <eacorley@hotmail.com> wrote in message
> news:C2DEBC17-2D8B-4C51-8FF6-4975618A2A88@microsoft.com...
> > Good day!
> >
> > I am looking for a sample script that can be used within a VB.NET/C#
> > application for uploading documents to a specific folder within a document
> > library.
> >
> > Specifically, I have several reports that are generated daily. These
> > reports
> > must be uploaded to the current day's older, Monday, Tuesday, etc. These
> > folders contain the same reports but from the previous week so the
> > existing
> > files need to be overwritten (or deleted before uploading the new
> > versions).
> > The upload process must be automated so that it can be scheduled.
> >
> > Can anyone provide a sample script or point me to the location of a
> > specific
> > script that will solve this problem?
> >
> > --
> > Respectfully,
> >
> > Andrew Corley, MCSD, MCDBA
>
>
>

Re: Autmoted upload of document to SharePoint by Mike

Mike
Thu Sep 23 14:16:20 CDT 2004

The net use possiblity isn't very well publicised but I came across it in
the beta (so a long time ago). I haven't seen much use for it (as there are
other options for copying files to doc libs normally) but for daily/weekly
etc. scheduled runs either to (your case) or from (the other case - acting
as a primitive backup) it suits quite well.

Glad you find it suitable.

Mike Walsh, Helsinki, Finland
WSS FAQ at http://wss.collutions.com
Please reply to the newsgroup

"Andrew Corley, MCSD, MCDBA" <eacorley@hotmail.com> wrote in message
news:71F54104-8746-4741-ADDB-A1B14B2031CC@microsoft.com...
> Mike,
>
> How did you find this method?!? I have looked almost everywhere and no
> luck.
>
> This looks like it will work great for us!
>
>
> "Mike Walsh" wrote:
>
>> If it weren't for the folder aspect (why don't you use different document
>> libraries instead?), the following would work.
>>
>> ----
>>
>> As these are documents you could do the reverse of a suggestion that is
>> lower down.
>>
>> I.e. specify the document library as a local drive by using Net Use
>> (needs
>> Office 2003 on the client where this is happening and paths to the doc
>> lib
>> without spaces is useful).
>>
>> Then create scheduled batch files to do the copying of the correctly
>> named
>> documents to the (local drive) document library.
>>
>> (I don't know whether this would work with folders - you could try the
>> principle out with one)
>>
>> Mike Walsh, Helsinki, Finland
>> WSS FAQ at http://wss.collutions.com
>> Please reply to the newsgroup
>>
>> "Andrew Corley, MCSD, MCDBA" <eacorley@hotmail.com> wrote in message
>> news:C2DEBC17-2D8B-4C51-8FF6-4975618A2A88@microsoft.com...
>> > Good day!
>> >
>> > I am looking for a sample script that can be used within a VB.NET/C#
>> > application for uploading documents to a specific folder within a
>> > document
>> > library.
>> >
>> > Specifically, I have several reports that are generated daily. These
>> > reports
>> > must be uploaded to the current day's older, Monday, Tuesday, etc.
>> > These
>> > folders contain the same reports but from the previous week so the
>> > existing
>> > files need to be overwritten (or deleted before uploading the new
>> > versions).
>> > The upload process must be automated so that it can be scheduled.
>> >
>> > Can anyone provide a sample script or point me to the location of a
>> > specific
>> > script that will solve this problem?
>> >
>> > --
>> > Respectfully,
>> >
>> > Andrew Corley, MCSD, MCDBA
>>
>>
>>



Re: Autmoted upload of document to SharePoint by Greg

Greg
Thu Sep 23 14:41:57 CDT 2004

I found this about uploading to a sharepoint server using ado

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=u9TH9OzgDHA.2184%40TK2MSFTNGP10.phx.gbl


Andrew Corley, MCSD, MCDBA wrote:
> Mike,
>
> How did you find this method?!? I have looked almost everywhere and no luck.
>
> This looks like it will work great for us!
>
>
> "Mike Walsh" wrote:
>
>
>>If it weren't for the folder aspect (why don't you use different document
>>libraries instead?), the following would work.
>>
>>----
>>
>>As these are documents you could do the reverse of a suggestion that is
>>lower down.
>>
>>I.e. specify the document library as a local drive by using Net Use (needs
>>Office 2003 on the client where this is happening and paths to the doc lib
>>without spaces is useful).
>>
>>Then create scheduled batch files to do the copying of the correctly named
>>documents to the (local drive) document library.
>>
>>(I don't know whether this would work with folders - you could try the
>>principle out with one)
>>
>>Mike Walsh, Helsinki, Finland
>>WSS FAQ at http://wss.collutions.com
>>Please reply to the newsgroup
>>
>>"Andrew Corley, MCSD, MCDBA" <eacorley@hotmail.com> wrote in message
>>news:C2DEBC17-2D8B-4C51-8FF6-4975618A2A88@microsoft.com...
>>
>>>Good day!
>>>
>>>I am looking for a sample script that can be used within a VB.NET/C#
>>>application for uploading documents to a specific folder within a document
>>>library.
>>>
>>>Specifically, I have several reports that are generated daily. These
>>>reports
>>>must be uploaded to the current day's older, Monday, Tuesday, etc. These
>>>folders contain the same reports but from the previous week so the
>>>existing
>>>files need to be overwritten (or deleted before uploading the new
>>>versions).
>>>The upload process must be automated so that it can be scheduled.
>>>
>>>Can anyone provide a sample script or point me to the location of a
>>>specific
>>>script that will solve this problem?
>>>
>>>--
>>>Respectfully,
>>>
>>>Andrew Corley, MCSD, MCDBA
>>
>>
>>

Re: Autmoted upload of document to SharePoint by Mike

Mike
Fri Sep 24 09:11:07 CDT 2004

Prompted by this I've now written a long-overdue "Tutorial" (= slightly
longer item) in the WSS FAQ called

VI.11 What are the various ways of bulk uploading files to WSS?

and which includes this as no. 5.

Anyone wanting to improve the article is welcome to place their comments on
it either in the newsgroup or using the Comments button in the main
(Collutions) WSS FAQ site.

Mike Walsh, Helsinki, Finland
WSS FAQ at http://wss.collutions.com
Please reply to the newsgroup

"Greg Merideth" <beta-gm@forwardtechnology.net> wrote in message
news:EcCdnWP6WZSYus7cRVn-jg@comcast.com...
>I found this about uploading to a sharepoint server using ado
>
> http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=u9TH9OzgDHA.2184%40TK2MSFTNGP10.phx.gbl
>
>
> Andrew Corley, MCSD, MCDBA wrote:
>> Mike,
>>
>> How did you find this method?!? I have looked almost everywhere and no
>> luck. This looks like it will work great for us!
>>
>>
>> "Mike Walsh" wrote:
>>
>>
>>>If it weren't for the folder aspect (why don't you use different document
>>>libraries instead?), the following would work.
>>>
>>>----
>>>
>>>As these are documents you could do the reverse of a suggestion that is
>>>lower down.
>>>
>>>I.e. specify the document library as a local drive by using Net Use
>>>(needs Office 2003 on the client where this is happening and paths to the
>>>doc lib without spaces is useful).
>>>
>>>Then create scheduled batch files to do the copying of the correctly
>>>named documents to the (local drive) document library.
>>>
>>>(I don't know whether this would work with folders - you could try the
>>>principle out with one)
>>>
>>>Mike Walsh, Helsinki, Finland
>>>WSS FAQ at http://wss.collutions.com
>>>Please reply to the newsgroup
>>>
>>>"Andrew Corley, MCSD, MCDBA" <eacorley@hotmail.com> wrote in message
>>>news:C2DEBC17-2D8B-4C51-8FF6-4975618A2A88@microsoft.com...
>>>
>>>>Good day!
>>>>
>>>>I am looking for a sample script that can be used within a VB.NET/C#
>>>>application for uploading documents to a specific folder within a
>>>>document
>>>>library.
>>>>
>>>>Specifically, I have several reports that are generated daily. These
>>>>reports
>>>>must be uploaded to the current day's older, Monday, Tuesday, etc. These
>>>>folders contain the same reports but from the previous week so the
>>>>existing
>>>>files need to be overwritten (or deleted before uploading the new
>>>>versions).
>>>>The upload process must be automated so that it can be scheduled.
>>>>
>>>>Can anyone provide a sample script or point me to the location of a
>>>>specific
>>>>script that will solve this problem?
>>>>
>>>>--
>>>>Respectfully,
>>>>
>>>>Andrew Corley, MCSD, MCDBA
>>>
>>>
>>>