Try this:
 Code:
If InGroup("51-Jugendamt-Lernen", "51-Jugendamt FB-510", "51-Jugendamt FB-511", "51-Jugendamt FB-512", "51-Jugendamt FB513", "51-Jugendamt FB-Leit")
		USE G: /DELETE
		USE G: "\\server\share"
	else
		USE G: /DELETE
		USE G: "\\server\otherShare"
	endif 


Simplifies the test, as InGroup accepts a single group, list of groups, or a 1-dimension array of groups as an argument. The default is "or" - membership in any one group, but an optional arg < InGroup(list, 1) > changes it to "and" - membership in all listed groups.

BTW - you might want to D/L the login script from my web site - it handles all kinds of group and OU membership tests (including complex constructs like - member of group a AND group b, but Not group c), and has cool features like path-rewriting. I've used it at dozens of clients without any code changes, and first deployed the core code in 1997 (so its well tested). It uses an INI file for configuration, and even supports user-specific config files (great for testing).

Glenn
_________________________
Actually I am a Rocket Scientist! \:D