in the past i have been able to run dos commands thru C++... for example: system("cls") in C++ used to clear the screen... does anyone know if this can be done in java?
Jump to Post
Well, since Java doesn't run on DOS but only on 32 bit operating systems you won't be able to execute DOS commands.
You can however (if you insist on loosing platform independence) execute Windows (or Unix) shell commands using the appropriate methods from the Runtime class.
As I in …
All 3 RepliesReply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.