so,
you need to do something like (or test)
 Code:
/* blockquoted
From the Reference Manual
SetOption - 
NoVarsInStrings
ON,OFF
Determines resolution of variables inside strings. 
If this option is enabled, any ‘$’ character in a string will be 
left as-is. The default is OFF.
IE - $SO=SetOption('NoVarsInStrings','ON')
*/
If InGroup('SAP')
 'Will try to delete Y: ' ?
 USE Y: /Delete
 'Result: ' + @ERROR + '  ' + @SERROR ?
 'Will now try to map Y: again ' ?
 $SO=SetOptions("NoVarsInStrings','ON')
 USE Y: \\client\H$
 'Result: ' + @ERROR + '  ' + @SERROR ?
 ;will try the shell-thingy if not working
 If @ERROR
  'trying the shell-part instead' ?
  USE Y: /Delete
  shell 'net use y: \\client\H$'
  'Result: ' + @ERROR + '  ' + @SERROR ?
 endif
 $SO=SetOption('NoVarsInStrings','OFF')
endif



Might be really stupid, or it might work and perhaps give you some result. Can't really test it out myself right now tho.
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!