Welcome, Register for free! or Login below:
EduGeek.net RSS Feeds Register FAQ Members Social Groups User Map Calendar Search Today's Posts Mark Forums Read

Educational Software

Educational sofware forum sponsored by

Having a problem with the high quality code which populates most educational software titles? Post it here for either a solution, or sympathy from a fellow sufferer.

Go Back   EduGeek.net Forums > Technical > Educational Software
Reply
 
LinkBack Thread Tools Search Thread Language
Sponsored Links
Old 15-10-2008, 03:05 PM   #1
 
jonathanhaddock's Avatar
 
Join Date: Dec 2007
Location: Barton Court Grammar, Canterbury
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 jonathanhaddock is an unknown quantity at this point
Send a message via MSN to jonathanhaddock Send a message via Yahoo to jonathanhaddock Send a message via Skype™ to jonathanhaddock
Default Stellarium

Hi everyone,

For our astrophysics course a teacher has requested the installation of Stellarium [1]. This in itself is not a problem but it appears the software doesn't automatically create its user directory unless the user is an administrator - clearly no good for students.

Has anyone had the same problem, and solved it (short of manually creating the user directories for each user)?

We're using Windows Server 2003 to store the students' home areas and Windows XP Pro as the client operating system.

[1] Stellarium.org

Thanks in advance,
Jonathan Haddock
Network Manager (and Webmaster)
Barton Court Grammar School
  Reply With Quote
Old 15-10-2008, 03:11 PM   #2
 
plexer's Avatar
 
Join Date: Dec 2005
Location: Norfolk
Posts: 4,274
uk
Thanks: 30
Thanked 102 Times in 101 Posts
Rep Power: 33 plexer is a name known to allplexer is a name known to allplexer is a name known to allplexer is a name known to allplexer is a name known to allplexer is a name known to all
Default

Just run a login script:

if not exist h:\stellararium mkdir h:\stellararium

Or something?

Ben
  Reply With Quote
Old 27-10-2008, 01:06 PM   #3
 
jonathanhaddock's Avatar
 
Join Date: Dec 2007
Location: Barton Court Grammar, Canterbury
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 jonathanhaddock is an unknown quantity at this point
Send a message via MSN to jonathanhaddock Send a message via Yahoo to jonathanhaddock Send a message via Skype™ to jonathanhaddock
Arrow !!SOLVED (With code)!!

Hi Plexer,

Thanks for your response - I hadn't considered a logon script (which is unusual for me) and that is indeed the solution I'm going with.

On my network at least, although I think it's the general ruling, you cannot give a .bat or .cmd as a logon script - it has to be something that uses the WSHost (VB Script for example) so I've found a script that does the same here [2].

I've pasted my code below, slightly modified over the original link. Hope this is useful to someone else!

Code:
Public objFSO

Sub Main()
Set objFSO = CreateObject("Scripting.FileSystemObject")
Call
GeneratePath("H:\StellariumUserData")
End Sub

' ---------------------------------------------------------------------
'* @info Generate a folder tree from the path
'*
'* @param (String) Path
'* @return (Boolean) Folder Exists: Recursion continues (Y/N)
' ---------------------------------------------------------------------
Function GeneratePath(pFolderPath)
GeneratePath = False
If Not objFSO.FolderExists(pFolderPath) Then
If GeneratePath(objFSO.GetParentFolderName(pFolderPath)) Then
GeneratePath = True
Call objFSO.CreateFolder(pFolderPath)
End If
Else
GeneratePath = True
End If
End Function

Call Main
You also need to ensure you adjust the parameters passed to Stellarium via its shortcut to include the user directory, see the Stellarium User Manual[2]. Example below:

Quote:
"C:\Program Files\Stellarium\stellarium.exe" -u "%HOMESHARE%\StellariumUserData"
[1]Create folder in vbscript
[2]Stellarium User Guide
  Reply With Quote
Old 27-10-2008, 01:17 PM   #4
 
RabbieBurns's Avatar
 
Join Date: Apr 2008
Location: glasgow
Posts: 921
uk scotland
Thanks: 91
Thanked 37 Times in 27 Posts
Rep Power: 13 RabbieBurns is a jewel in the roughRabbieBurns is a jewel in the roughRabbieBurns is a jewel in the roughRabbieBurns is a jewel in the rough
Default

Quote:
Originally Posted by jonathanhaddock View Post
uling, you cannot give a .bat or .cmd as a logon script - it has to be something that uses the WSHost (VB Script for example)
all our login scripts are .bat files
  Reply With Quote
Reply

Register now for FREE and post messages!


Username: Password: Confirm Password: E-Mail: Confirm E-Mail:
Birthday:      
Image Verification
  I agree to forum rules 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search Thread
Search Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 07:07 PM.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright EduGeek.net