How to run thrid party exe
Hi,
I'm new to netbeans,
I'm trying to make a GUI to that it can run a third-party command-line exe.
the command that I'm trying to work on is as follows:
clic mp3play.gd -i c:\test.mp3
where:
clic is the main exe.
mp3play.gd -i is the parameter
test.mp3 is the actual file, which is the user input.
Thanks in advance
Pls do help me out.
Thanks it did helped me..
Now can I ask u how do you actually stop the running application (same third party exe; that is executed earlier.).. without stopping the whole GUI.
the problem am having is that when application is running.. non of the buttons respond on the GUI. My code is as below:
try {
Runtime rt = Runtime.getRuntime();
File file = fc.getSelectedFile(); //defined earlier in code.
result = file.getPath(); //defined earlier in code.
String command = "cmd /c clic c:\\mp3play.gd -i " + result;
Process pr = rt.exec(command);
BufferedReader input = new BufferedReader(new InputStreamReader(pr.getInputStream()));
String line=null;
while((line=input.readLine()) != null) {
System.out.println(line);
int exitVal = pr.waitFor();
System.out.println("Exited with error code "+exitVal);
} catch(Exception e) {
System.out.println(e.toString());
e.printStackTrace();
}When I execute, the whole GUI becomes irresponsive untill the application stops by it self.
Thanks
Kuldeep
Similar Messages
-
How to run an external .exe file from an indesign pluging
Hi,
Suppose if I have written an separate application in C++ (.exe file) & need to run it from an indesign pluging(as if a service in windows). have you provided that facilities in your SDK? if it's please let me know how to run an external .exe file from a indesign pluging.
Thanks,I'm actully writing data in PMString to a external txt file.
another question..
if i want to execute an action when the ok button is cliked how can i do it?
whe i add a button(widget) i know how to handle it. please see my code.
// Call the base class Update function so that default behavior will still occur (OK and Cancel buttons, etc.).
CDialogObserver::Update(theChange, theSubject, protocol, changedBy);
do
InterfacePtr<IControlView> controlView(theSubject, UseDefaultIID());
ASSERT(controlView);
if(!controlView) {
break;
// Get the button ID from the view.
WidgetID theSelectedWidget = controlView->GetWidgetID();
if (theChange == kTrueStateMessage)
//if (theSelectedWidget == kEXTCODGoButtonWidgetID
switch(theSelectedWidget.Get())
case kEXTCODGoButtonWidgetID:
this->ViewOutput();
break;
case kEXTCODFindButtonWidgetID:
this->SaveLog();
break;
// TODO: process this
} while (kFalse);
I do two actions "SaveLog" & "ViewOutput()" using two buttons. But i dont know how to execute an action when the ok button is clicked... -
How To Run An External .exe File With Command Line Arguments
Hiya, could anyone tell me how I can run an external .exe file with command line arguments in Java, and if possible catch any printouts the external .exe file prints to the command line.
Thanks.Using the Runtime.exec() command. And read this:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html -
We have a scoreboard and we don't know how to run it in an exe.file.
We need it to project on a big tv screen.
please answer
thxYou need the Application Builder installed (before 8.0 - Tools>>Build Application..., in 8.x building should be part of the project).
If you don't have it, you can purchase it seperately from NI.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
Try to take over the world! -
How to run other sline.exe in forms
Dear sir,
I have one package which is developed in c or c++ dosbased. when i run through dos prompt it show s the new windows and i have press f1 key and accpect the data from com port and accecpt the data and write to x.file . then i am taking this data by writing text.io function and code.
I need how to run this exe file in forms
please guide me
regards
Mathapati.C.K.Have you tried the "host" command? Check the help for info.
-
How to run the LabVIEW exe as background process?
Dear All,
I want to run my LabVIEW exe as background process, which wont show as the process in the task bar as shown in the .jpeg file.
I want to run it as a background services as like runs in the windows processes.
Please suggest me something.
Thanks,
NishantDear Smercurio,
Thanks for the good one, but it still requires the windows XP or later OS, when i extract the software, it gives me this error.
Even Fire Daemon software (same one provided by Alessio in this post) is also running the same, and we even dont have to make it Automatic to start at boot up time, it automatically creates the automatic service which also runs at boot time, so not to worry about anything.
Thanks,
Nishant
Message Edited by Nishant on 12-05-2006 10:12 PM
Message Edited by Nishant on 12-05-2006 10:16 PM
Attachments:
rktools error.jpg 12 KB
rktools error.jpg 12 KB
rktools error.jpg 12 KB -
How to run a specific Exe software without admin previlages
Hello,
I have installed a software whose shortcut to run is an exe file, whenever i want to run that it asks for admin credentials. I need a method for specific softwares so that i can add admin credentials in registry or Group Policy for the software and whenever
i run that it get run without asking for credentials automatically.
Need urgent support onm it.
Thanks.Try RunasSpc tool
see also:
ScriptLogic Privilege Authority: Boosting User Productivity
S.Sengupta, Windows Entertainment and Connected Home MVP -
How to run other windows .exe program in Java code?
Hello!
In C language we can use system() function to run a OS prog,
but which function(method) can we use in java?Not a top programmer here, just happen to like to play with funny ideas.
I'm not sure how you can get the installation directory, but you can obtain the OS type by using
System.out.println(System.getProperty("os.name"));
Then maybe you deduce the directory from there? For the list of properties available try this:
System.getProperties().list(new java.io.PrintStream(System.out)); -
How to configure thrid party listeners to JMS queu
I have to design a BPEL process that publishes a message onto a topic. The subscriber to the topic is not another Fusion process, but an external, third part service.
How do I do the configurations to register a subscriber to this topic.
Allso, I would like information on optimum JMS adapter settings.
Please let me know how.
Edited by: user591314 on Oct 31, 2008 2:04 AM
Edited by: user591314 on Oct 31, 2008 4:36 AMI have to design a BPEL process that publishes a message onto a topic. The subscriber to the topic is not another Fusion process, but an external, third part service.
How do I do the configurations to register a subscriber to this topic.
Allso, I would like information on optimum JMS adapter settings.
Please let me know how.
Edited by: user591314 on Oct 31, 2008 2:04 AM
Edited by: user591314 on Oct 31, 2008 4:36 AM -
Hi,
How to use Thrid Party DLL File through Java Access Bridge or Any other way.
ThanksYou should find the information at http://java.sun.com/products/accessbridge/docs/index.html
-
i need to run a thrid party software using java .i need to do it on windows platform
thanksThank you
i was able to call the exe from the program -
How to run .exe files with Virtual PC for Mac
Hey Guys, I'm new around here and with mac technology as well. Anyway, I have an iMac OS X 10.5.1 Leopard and I've recently purchased the Virtual PC for Mac 7.0.2 software. So I'd like to know how to use this program properly, because I need to run some executable files in my computer. It is confusing for me because I don't know how to get started, and I only get to the part when it says "OS not found, Install an OS on this hard drive".
Honestly I've no idea of what an OS is or where do I get that. So I'd really appreciate if one of you guys could tell me, step by step, what to do to use Virtual PC properly, and finally learn how to run .exe files on mac.
Thanks in advance!
Have a nice day!Always nice to see new faces
Honestly I've no idea of what an OS is or where do I get that.
This brings up the second part of your problem. The first part is setting up either a proper Virtual Machine program like Parallels or VMfusion, or setting up a Boot Camp partition on your drive.
http://www.parallels.com/
http://www.vmware.com/products/fusion/
OS stands for Operating System. You are running Leopard 10.5.7 as an operating system on your Mac (MacOS X).
The second part of your problem - You will need a copy of Windows XP or Vista if you want to run Windows on your Mac.
There is at least one other solution for running Windows programs on a Mac. It's called "CrossOver" by a company named 'Codeweavers'. It's based on a project for "Wine" to be able to run PC programs on a Mac or Linux, without having to buy or install Windows. It works with a narrow subset of Windows programs so you would want to make sure the program you want to run is compatible with CrossOver before you buy it.
http://www.codeweavers.com/products/cxmac/
In addition to all the above information, you need to upgrade your Mac to the latest 10.5.7 from 10.5.1. "Software Update" is located under the black Apple icon in the Menu Bar at the top left corner of your monitor. After you are updated you will want to update your Profile here so that it shows the proper OS version.
With your level of experience with MacOS X and the Windows OS's you should probably get some help from a local Apple store. They have an appointment system and do offer many types of help and training, and they can offer assistance with choosing the proper programs for you to purchase for your machine.
You are also welcome to continue to ask questions here, of course. You will want to ask your questions with different issues that come up in different threads so that the answers stay focused on the title of the thread.
Message was edited by: dechamp to try to be more accurate with a fairly complicated issue... -
How to run .exe files in mac pro?
how to run .exe files in mac pro?
i am looking for this to play games in my mac pro.
if someone got a answer, just let me know
cheers.mailking wrote:
And I fail to see why you are attacking me...
My comment is Valid... " .exe files will not run natively on Mac OS X..."
I am sorry. I had the false impression that it was commonly known that .exe files did not run on Mac OSX natively and failed to see any constructive critique you were bringing. Maybe I am wrong. Again deepest apologies.
Unfortunately... these days... not every one is aware of this .exe fact..
Apology accepted.. and Thank You.. -
How to run an exe file in a java program
Hi,
Can somebody tell me how to run an exe file in a java program.
Thank you!Yes, java.lang.Runtime.exec().
Read this carefully before you do:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
Don't write a line of code before you're reviewed and understood the article completely. - MOD -
How to run RWRUN.exe and RWCLIENT.exe in Linux
Our reports (11G R2) output desformat is PDF. We howerver, need to embed some fonts in the PDF when it is generated. So, we need to add the parameter PDFEMBED in the command line of RWRUN, RWCLIENT or RWSERVLET. However, the application server is Linux.
Since Linux does not have EXEs how to run these in Linux and how to pass parameters to them? i.e. reportname, directory,... etc.Hello,
You can find the shell scripts rwrun.sh and rwclient.sh in ORACLE_INSTANCE/config/reports/bin ...
Regards
Maybe you are looking for
-
I updated my mini, but some of my apps are no longer available. One of them I purchased from the Apple store. They are grayed out with the word "waiting" underneath the app. Any suggestions?
-
Photoshop toolbar too small to read or use on Win 8
Just downloaded trial of photoshop but toolbar too small to read/use. Have windows 8 operating system. Anyone thoughts on how to correct. Thx, John
-
Resizing/compresing images within a document
Hi I am trying to compress all images within a document I've just creacted, in order to avoid having a 20Mb size document, but I cannot find the tool anywhere. I am just new to Pages, transfered from Office Word, where this task can easily be done by
-
Booking Transportation Cost in to Material
hi Guys we are purchasing HSD from Indian Oil. we giving 2 Type Purchase Orders 1- HSD 2 - Transporation Vedors Transporation Vendors may be 3- 4 vendors can supplying HSD to our company. Every Vendors can be supply 5 times each. we are making
-
Referencing "image" form elements using Safari
I'm trying to write an Applescript which uses Safari's do JavaScript feature to reference the elements of forms in web pages. I've run into a puzzle in cases where the page designer chose to use an element of type "image" for form submission. It look