Discussion:
executing dos internal commands
(too old to reply)
George Xavier
2006-01-16 20:06:14 UTC
Permalink
What is the syntax for executing DOS internal commands with Runtime.exec() ?
Kevin Dean [TeamB]
2006-01-17 02:42:23 UTC
Permalink
Post by George Xavier
What is the syntax for executing DOS internal commands with Runtime.exec() ?
The command-line syntax for "dir" is the following:

command.com /c dir

Every internal command is run with "command.com /c <internal_command>".
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
Alexey N. Solofnenko
2006-01-17 04:34:59 UTC
Permalink
I think DOS is dead and Windows 95++ too, so "cmd.exe" is a better way
to execute DOS commands now.

- Alexey.
Post by Kevin Dean [TeamB]
Post by George Xavier
What is the syntax for executing DOS internal commands with
Runtime.exec() ?
command.com /c dir
Every internal command is run with "command.com /c <internal_command>".
--
Alexey N. Solofnenko
home: http://trelony.cjb.net/
Kevin Dean [TeamB]
2006-01-17 11:44:08 UTC
Permalink
I think DOS is dead and Windows 95++ too, so "cmd.exe" is a better way to
execute DOS commands now.
Agreed. cmd.exe is a better choice, but the question was explicitly about
DOS. ;-)
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
George Xavier
2006-01-18 02:17:07 UTC
Permalink
Kevin,

The "suits" are going to lecture you about the need to proactively
anticipate the client's needs. :-)

Ok, just kidding. Thanks to you and Alex for the response.

George
Post by Kevin Dean [TeamB]
I think DOS is dead and Windows 95++ too, so "cmd.exe" is a better way to
execute DOS commands now.
Agreed. cmd.exe is a better choice, but the question was explicitly about
DOS. ;-)
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
Loading...