and the result is...

"dsquery failed: '>' is an unknown parameter"

Darn!
that didn't work [Frown]

I don't understan what could be wrong here?
it's a simple quoted statement.
I mean, if i copy it from the script, paste it into the console, then it works.
Very strange...

[edit:]
When I use "%ComSpec% /C" it doesn't give an error message, and the "? @serror @error" gives me
"The command completed successfully.0"
So far so good...
... but I don't get any .txt-file.
[/edit:]

[ 18. July 2003, 13:03: Message edited by: Viggen ]