Paladin of the Pegasos
Posts: 1289 from 2003/2/25
From: binaryriot
I personally wouldn't add it to user-startup (you don't know if the TCP/IP srack is online at that point already and waiting for it would delay your boot).
But you could write a small script like this (replace share/ login information with your information of course) and save it to "SYS:WBStartup". Next you copy some .info file (icon) to this file, e.g. you saved your script as 'MountShare' then you save the icon as 'MountShare.info'. Finally right-click on the icon and choose 'Information...' and switch the icon type to 'Project' and add 'MOSSYS:C/IconX' as 'Default Tool'.
That way you simple can enable/ disable shares by dragging the script out of WBStartup.
; Wait for TCP/IP stack to show up
;
IF NOT EXISTS MOSSYS:s/network-startup
WaitForPort MIAMI.1 LOOP 10
ELSE
WaitForPort NETSTACK LOOP 10
ENDIF
; First start needs some delay, so TCP/IP stack has time to go online
;
IF NOT EXISTS T:SMB1.log
WAIT 3
ENDIF
Date LFORMAT "smbfs for 'data' started at %T %d.%m.%Y" >>T:SMB1.log
Run <>NIL: smbfs workgroup HOMENET user SECRETAGENT password TOPSECRET devicename SMB1 volumename data@garnet //garnet/data OMITHIDDEN <NIL: >>T:SMB1.log
EndCLI
[ Edited by tokai on 2009/11/27 2:32 ]
[ Edited by tokai on 2009/11/27 2:43 ]