Results 1 to 1 of 1
- 04-16-2011, 02:40 PM #1
Member
- Join Date
- Apr 2011
- Posts
- 3
- Rep Power
- 0
Ruc command line structure in Java
Dear friends
I want to run a Python executable file. In this command i call the python (already installed in windows) and execute the .py file by some parameters.
whenever i type this command in 'cmd' in windows and execute it, it runs and i have the result, but i don't know how can i do same process in Java !Java Code:D:\pyhon27\python D:\python27\cp_wordnet.py 2 2 2 2r 2e 3ssd 2dfdf 2 1 2 2
I tried these commands in java, but they don't work :(
The 'path' is String and equal to 'D:\pyhon27\python D:\python27\cp_wordnet.py 2 2 2 2r 2e 3ssd 2dfdf 2 1 2 2'
could somebody pleas help meeeJava Code:Process p = Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler "+ path); Process p = Runtime.getRuntime().exec("cmd /c "+ path); Process p = Runtime.getRuntime().exec("rundll64 SHELL64.DLL,ShellExec_RunDLL "+ path); Process p = Runtime.getRuntime().exec(path); Process p = Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler d:/python/wordnet.py");
Similar Threads
-
Command line args for your java app!
By aadem in forum New To JavaReplies: 2Last Post: 03-04-2011, 09:05 PM -
Formatting java command line output - Multi line string
By dricco in forum New To JavaReplies: 2Last Post: 07-02-2010, 02:20 PM -
Command line interface in Java
By simmi in forum New To JavaReplies: 1Last Post: 03-17-2010, 07:07 AM -
Java command line
By agouzoul in forum New To JavaReplies: 2Last Post: 04-02-2008, 12:12 PM -
Unable to execute command line command in java
By LordSM in forum New To JavaReplies: 1Last Post: 08-08-2007, 12:23 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks