how does one call a windows (dos-like) command from within java?

such as net stop spooler

can one capture the resulting text (such as, spooler stopping, or error such and such)

See the Process and Runtime classes for that.

ok

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.