Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with Runtime.exec()  RSS feed

 
srinivas daroori
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to execute lot of ISQL commands using the Runtime.exec(). The problem is on Windows OS, it opens up a new popwindow for every process. It is very much annoying to have many new popup windows. Is there any way to prevent the windows getting poped up when running a process by executing Runtime.exec().
 
RavindraDSL Nandam
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I didnt understand your problem. you better paste the code, that might be of some use.

Regs,
Ravi
 
srinivas daroori
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We can run a process by using Runtime.getRuntime().exec(String command). The String command can be any operating system command. For example like copy c:\trial.txt c:\tmp\trial.txt etc.,

When you say Runtime.exec(), this starts the process given by the command and opens up a separate popup window while doing that process.

My question is is there any way to eliminate the popup which is appearing
 
Michael Dockery
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes there is a way to avoid the popups:
START ["title"] [/Dpath] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
[/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
[/WAIT] [/B] [command/program]
[parameters]

Notice the "/MIN" option (above). This will cause the window to run minimized.

There are other options also. Let me know if you want to here more.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!