• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 537
  • Last Modified:

Automatically upload files to a SharePoint 2007 document library?

Hi,

I would need to upload files automatically to a Sharepoint 2007 library.  Its hosted on a Win2003 Sp2 server.

I didnt found a stsadm command, are there other ways to upload files via a script?

Thank you Sascha
0
Sa5cha
Asked:
Sa5cha
  • 2
  • 2
1 Solution
 
Jamie McAllister MVPArchitectCommented:
You can upload to libraries using UNC path. There's also Webdav, web services etc

http://stackoverflow.com/questions/450915/upload-files-to-sharepoint-document-libraries-via-ftp
0
 
Sa5chaAuthor Commented:
You mean just a simple copy command towards the UNC path of that Sharepoint library?  That works that simple?
0
 
Jamie McAllister MVPArchitectCommented:
We Powershell a bunch of files into SharePoint via UNC path every day!
0
 
Sa5chaAuthor Commented:
Thank you it works as simple as you told:

net use x: https://{PATH_TO_SHAREPOINT} /user:{SERVICEACCOUNT_USERNAME} {SERVICEACCOUNT_PASSWORD}
copy {SOURCEPATH}\{FILE} x:\
net use x: /delete

Open in new window

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now