I have tried this:
shell "dsquery group OU=Some_school,OU=Schools,DC=school,DC=mycompany,DC=com -scope subtree -name Students"

And that works.
The problem is that I get the result on screen and I need the script to work with the result.

I have tried the following:
shell "dsquery group OU=Some_school,OU=Schools,DC=school,DC=mycompany,DC=com -scope subtree -name Students > C:\Temp\query.txt"

Thought I'd do a Readline after that, but again the command works only at the console.
If I try to let kix do it I get an dsquery error stating that '>' is an unknown command,
so it seems that it doesn't get passed to dos correctly?? strange... [Confused]

note.
What i'm trying to do is search AD to see if a specific group exist.
If it does... fine
If it doesn't... create it
I thought to myself that "hehe... there's a builtin tool for this in win2k3, why not be lazy and use it"
But NO... not a snowballs chance in hell that it should work [Big Grin]

[ 18. July 2003, 12:36: Message edited by: Viggen ]