Page 1 of 1 1
Topic Options
#198639 - 2010-05-18 02:30 AM MS SharePoint Server
Lipman Offline
Fresh Scripter

Registered: 2005-05-09
Posts: 43
Loc: Jersey Shore USA
Anybody have any experience mapping a drive to a Microsoft SharePoint Server ?
Top
#198640 - 2010-05-18 03:56 AM Re: MS SharePoint Server [Re: Lipman]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
First I've ever heard of this... but appears it possible at least in cmd shell.

http://blog.crowe.co.nz/blog/archive/2005/08/31/244.aspx

If it works in Kix, I would assume it would be no different.

use x: "http://www.mywebserver.com/Shared Documents"

Top
#198641 - 2010-05-18 05:05 AM Re: MS SharePoint Server [Re: Allen]
Lipman Offline
Fresh Scripter

Registered: 2005-05-09
Posts: 43
Loc: Jersey Shore USA
Yes, I saw that NZ Blog site.

I have tried it multiple ways in Vista SP2 and XP SP3 with Office 2003 and Office 2007. So far no success.
I am beginning to think there are "prerequisites" that have to be met in the OS first.

BTW: The server is SSL (https) and users authenticate to the Domain via a Smart Card. Those credentials are then passed to the SharePoint Server.

Top
#198642 - 2010-05-18 06:40 AM Re: MS SharePoint Server [Re: Lipman]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Again this is completely out of my ballpark... however the following link has some suggestions to configure it starting at the bottom of page 12.

http://stemrc.aihec.org/SharePoint%20Tip...t%20Library.pdf

If this doesn't help, I'd suggest you post what you've tried and maybe someone else will chime in.


Top
#198644 - 2010-05-18 12:28 PM Re: MS SharePoint Server [Re: Allen]
Lipman Offline
Fresh Scripter

Registered: 2005-05-09
Posts: 43
Loc: Jersey Shore USA
Thanx I will look into this more Today.
Top
#198657 - 2010-05-19 12:05 AM Re: MS SharePoint Server [Re: Lipman]
Lipman Offline
Fresh Scripter

Registered: 2005-05-09
Posts: 43
Loc: Jersey Shore USA
That PDF was interesting but the PC I tested it on met all the minimum requirements. Sine it was also tested on a newly re-imaged PC using the organization Gold Master and it did not work... we canned the whole idea.

Thank you Allen.

Top
#198673 - 2010-05-20 04:07 AM Re: MS SharePoint Server [Re: Lipman]
Lipman Offline
Fresh Scripter

Registered: 2005-05-09
Posts: 43
Loc: Jersey Shore USA
Now I have a whole NEW problem with SharePoint.

The files that are allowed on the ShraePoint Server are limited by file type and the type of characters in the file name.

One of the characters that can't be used is the ampersand '&'. Well our organization has a sub-organization that has the ampersand in the acronym such as APN&IT leading to *numerous* files and folders that have the ampersand it them.

Now I have to write a script that will traverse every file and folder and if the file or folder has the ampersand (or other character in the name prohibited by SharePoint server it has to be replaced.

Top
#198729 - 2010-05-27 02:19 PM Re: MS SharePoint Server [Re: Lipman]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
So you want to find all the directories containing an "&" en rename that directory?
 Code:
; ===========================================================================================
;
; 	Script Information
;	
;	Title:       
;	Author:      Wim Rotty
;	Date:        
;	Description: Find all directories wit "&" and rename them
;	
;
; ===========================================================================================

;;;;;;;;;;;;;;;;;;
; Script Options ;
;;;;;;;;;;;;;;;;;;

If Not @LOGONMODE
	Break On
Else
	Break Off
EndIf
Dim $RC
$RC = SetOption("Explicit", "On")
$RC = SetOption("NoMacrosInStrings", "On")
$RC = SetOption("NoVarsInStrings", "On")
If @SCRIPTEXE = "KIX32.EXE"
	$RC = SetOption("WrapAtEOL", "On")
EndIf

;;;;;;;;;;;;;;;;;;;;;
; Declare variables ;
;;;;;;;;;;;;;;;;;;;;;

Dim $Dirs
Dim $Dir
Dim $Path
Dim $Options
Dim $StringToFind

;;;;;;;;;;;;;;;;;;;;;;;;
; Initialize variables ;
;;;;;;;;;;;;;;;;;;;;;;;;

$Path = "C:\Program Files"
$Options = "/AD /S"
$StringToFind = "Windows"	; $StringToFind = "&"

;;;;;;;;
; Code ;
;;;;;;;;

$Dirs = DirPlus($Path, $Options)
For Each $Dir in $Dirs
	If InStr($Dir.Name, $StringToFind)
		? $Dir.Drive
		? $Dir.Name
		? $Dir.ParentFolder
		? $Dir.Path
		?
		; I presume
		; $RC = $Dir.Move()
		; can help
	EndIf
Next

;;;;;;;;;;;;;;;;;;;;;;;;
; Personal UDF Section ;
;;;;;;;;;;;;;;;;;;;;;;;;

;;;;;;;;;;;;;;;
; UDF Section ;
;;;;;;;;;;;;;;;

; Paste the DirPlus() Function here
; You can find it at
; http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=82153


Top
#198756 - 2010-06-02 04:52 AM Re: MS SharePoint Server [Re: Witto]
Lipman Offline
Fresh Scripter

Registered: 2005-05-09
Posts: 43
Loc: Jersey Shore USA
Thanx :-)

What I did was use the DIR /s /b command and pipe it to the FIND "char" command and search for characters that SharePoint Server dislikes. That output was then redirected to a TXT file. My KiXtart script would then parse the .TXT file, line by line, and perform a rename. I looped through all possible characters that SharePoint Server dislikes. I ran the script and walked away.

BTW: I am no phan of SharePoint.

Top
#198758 - 2010-06-02 06:57 AM Re: MS SharePoint Server [Re: Lipman]
weds1 Offline
Just in Town

Registered: 2010-06-02
Posts: 1
Loc: Milpitas
i got the same..thanks for the reply guys
_________________________
fake diploma - seo specialists - fake degree

Top
#198840 - 2010-06-12 02:40 AM Re: MS SharePoint Server [Re: weds1]
Lipman Offline
Fresh Scripter

Registered: 2005-05-09
Posts: 43
Loc: Jersey Shore USA
I just got some news.

While SSL isn't supported on WinXP, I should be able to use the USE directive with the following syntax under Vista...

USE J: "\\server.domain@@ssl\DavWWWRoot\MySite"

Top
#209526 - 2014-10-16 01:59 PM Re: MS SharePoint Server [Re: weds1]
Lipman Offline
Fresh Scripter

Registered: 2005-05-09
Posts: 43
Loc: Jersey Shore USA
It has been a while since I was last in this thread so I thought I'd update it.

SharePoint conforms to WebDAV so there is a special version of a UNC to be used to map a drive letter.

The following example uses SSL

Use u: "\\spad.mysite.com@@SSL\DavWWWRoot\share"

The following is for any WebDAV enabled site. I'll use Sysinternals as an example since it can easily be demonstrated.

use u: "\\live.sysinternals.com\DavWWWRoot"

Tested over the years and its a great way to deal with SharePoint or any WebDAV compliant server.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.058 seconds in which 0.021 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org