Printing the driver state
Novell Cool Solutions: Question & Answer
Reader Rating 
Q:
I've been trying to automate getting an IDM2 driver (NOT driver set) status from a Windows batch file. So far I can only get this information via the utility menus. What is the correct DN form to use with the DXCMD.BAT utility run under Windows? Or is there something I need to know about this utility? When it runs it shows this version:
DirXML Command Line Utility
version 0.1
Copyright (C) 2003 Novell Inc., All Rights Reserved
A:
The command line -getstate returns the state as a number to the calling shell, rather than printing it. If you alter the dxcmd.bat file to add the following line just before the endlocal, then it will print the state as a number.
echo program return == %errorlevel%
The meaning of the number is documented at:
http://developer.novell.com/ndk/doc/dirxml/index.html?page=/ndk/doc/dirxml/dirxmlbk/data/a36pjzu.html
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com