Hi,
I have found that if the data dir path is set in the file with a trailing "\" then the create search share task fails: As you can see below it runs the command with double "\"
```
- Creating network share "SearchIndex=E:\SharePoint\\Office Server\Applications"
The syntax of this command is:
NET SHARE
sharename
sharename=drive:path [/GRANT:user,[READ | CHANGE | FULL]]
[/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents| Programs | BranchCache | None]
sharename [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents | Programs | BranchCache | None]
{sharename | devicename | drive:path} /DELETE
sharename \\computername /DELETE
```
Can a check be run to see what the trailing character is or a note added to the description.
Comments: ** Comment from web user: brianlala **
I have found that if the data dir path is set in the file with a trailing "\" then the create search share task fails: As you can see below it runs the command with double "\"
```
- Creating network share "SearchIndex=E:\SharePoint\\Office Server\Applications"
The syntax of this command is:
NET SHARE
sharename
sharename=drive:path [/GRANT:user,[READ | CHANGE | FULL]]
[/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents| Programs | BranchCache | None]
sharename [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents | Programs | BranchCache | None]
{sharename | devicename | drive:path} /DELETE
sharename \\computername /DELETE
```
Can a check be run to see what the trailing character is or a note added to the description.
Comments: ** Comment from web user: brianlala **
Confirmed. Will add the line:
```
$dataDir = $dataDir.TrimEnd("\")
```
To a couple of places in the script in order to prevent this from happening. Look for the fix in the next release.
Cheers
Brian