Omegawulf -
The proper command-prompt syntax to map a drive to a home share without creating a shared resource for each directory is:Win2K: NET USE <DRIVE>: \\Server\Share\Sub Folder
WinNT: SUBST <DRIVE>: \\Server\Share\Sub Folder
Win9x: NET USE <DRIVE>: /HOME
To delete these mappings:
Win2K: NET USE <DRIVE>: /DEL
WinNT: SUBST <DRIVE>: /D
Win9x: NET USE <DRIVE>: /DEL
To execute these within a KiX script, use the SHELL command:
SHELL "comspec /c NET USE H: /HOME"
A simple script to handle all this could be:
SELECT
CASE (@INWIN = 1) AND (@DOS >= 5) SHELL "comspec /c NET USE H: \\Server\Users\@USERID"
CASE (@INWIN = 1) AND (@DOS >= 4) SHELL "comspec /c SUBST H: \\Server\Users\@USERID"
CASE (1) SHELL "comspec /c NET USE H: /HOME"
ENDSELECT
Let me know how this works.
Bill
[ 22 August 2001: Message edited by: bleonard ]