This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-02-25 17:16:28

cyr0nk0r
New Scratcher
Registered: 2011-02-25
Posts: 3

Are UNC paths supported for home drive?

Reading the network installation page found here:

http://info.scratch.mit.edu/Network_Installation

It says to use a network share for the home path add this line to the Scratch.ini file

Home=J:\MySchool\Students\Grade5\*

However my shared drives are not mapped to a drive letter. I want to use the actual UNC path to the share, but when I make the settings change and try and save a project the program defaults back to the projects folder on the C:\ drive.

I am trying to set my home path as the following:

Home=\\ad.example.com\share\scratch\*

Also, when attempting to navigate up my UNC path tree (roaming profiles) I get errors such as "Fully qualified path expected" with a big red popup of a debug window.

Offline

 

#2 2011-02-25 17:37:56

cyr0nk0r
New Scratcher
Registered: 2011-02-25
Posts: 3

Re: Are UNC paths supported for home drive?

Ok, after doing my own research and trial and error I have determined the following behavior.

UNC path's are somewhat supported, but only if you do not have the \* at the tail end.

If My home path is:
Home=\\server\scratch\*
Home=\\domain.local\dfsshare\scratch\*

Then the program will default to the users My Documents folder and not respect the home drive assignment. However if I leave the trailing slash and asterisk off, the program will save to the shares just fine (while also creating a "Scratch Projects" folder)

Home=\\server\scratch
Home=\\domain.local\dfsshare\scratch

When saving a project the program will create a folder and the path will look like this.
\\domain.local\dfsshare\scratch\Scratch Projects\test.sb

I'm wondering why I am seeing this kind of behavior. It's obvious the program supports UNC paths, and it can't be a file security problem of creating folders based off the username because the program is already creating a Scratch Projectors folder on the share.

Offline

 

#3 2011-02-27 21:27:08

cyr0nk0r
New Scratcher
Registered: 2011-02-25
Posts: 3

Re: Are UNC paths supported for home drive?

No one uses this program with network shares?
If you do, am I the only one seeing this behavior?

Offline

 

#4 2011-02-27 21:41:30

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Are UNC paths supported for home drive?

I'm pretty sure there are people using Scratch with network drives.  But I'm not sure about the UNC paths you mention.  I'll forward your forum topic on to the help desk and see if they can shed any light on your issue.

Another good place to check for answers is the Scratch Ed forum...which is aimed at supporting the needs of educators.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#5 2011-02-28 10:31:28

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: Are UNC paths supported for home drive?

cyr0nk0r wrote:

Ok, after doing my own research and trial and error I have determined the following behavior.

UNC path's are somewhat supported, but only if you do not have the \* at the tail end.

If My home path is:
Home=\\server\scratch\*
Home=\\domain.local\dfsshare\scratch\*

Then the program will default to the users My Documents folder and not respect the home drive assignment. However if I leave the trailing slash and asterisk off, the program will save to the shares just fine (while also creating a "Scratch Projects" folder)

Home=\\server\scratch
Home=\\domain.local\dfsshare\scratch

When saving a project the program will create a folder and the path will look like this.
\\domain.local\dfsshare\scratch\Scratch Projects\test.sb

I'm wondering why I am seeing this kind of behavior. It's obvious the program supports UNC paths, and it can't be a file security problem of creating folders based off the username because the program is already creating a Scratch Projectors folder on the share.

Thanks for writing, and sorry for the delay in getting back to you.

Scratch does not explicitly support UNC paths, but it's interesting to know that they will function provided one doesn't use the * at the end. Your best solution would be to map the path to a drive letter if possible.  Unfortunately, all of our limited development resources are focused on Scratch 2.0, which will run entirely in the browser.


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

Board footer