what does Runtime.getRuntime().exec() means and what it is used for
i read it some where that it is used to open different executable files using java by using this command can i open drives or non-executable files if not then how can i open it ??
thank you Tim for your reply but how can i open different drives and different files and folder in that drive for example i got some music file of any other file or folder in that drive how can i make it act like it acts on double click by mouse please help...
thats really cool but when I try to open a media file its giving
java.io.IOException: Failed to open file:/E:/MUZIC/INGLISH/01%20lose%20yourself%
20-%20no%20skips%20-%20guaran.mp3. Error message: Unspecified error
at sun.awt.windows.WDesktopPeer.ShellExecute(Unknown Source)
at sun.awt.windows.WDesktopPeer.open(Unknown Source)
at java.awt.Desktop.open(Unknown Source)
at RuntimeExec.main(RuntimeExec.java:17)
jaspreet manchinda wrote:thats really cool but when I try to open a media file its giving
java.io.IOException: Failed to open file:/E:/MUZIC/INGLISH/01%20lose%20yourself%
20-%20no%20skips%20-%20guaran.mp3. Error message: Unspecified error
Do you actually have a file with that name? Looks like a URL specifier to me.
Winston
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
java.io.IOException: Failed to open file:/E:/MUZIC/Eminem%20-%20Recovery%202010/
Eminem-Recovery-2010/3.%20On%20Fire.mp3. Error message: Unspecified error
at sun.awt.windows.WDesktopPeer.ShellExecute(Unknown Source)
at sun.awt.windows.WDesktopPeer.open(Unknown Source)
at java.awt.Desktop.open(Unknown Source)
at RuntimeExec.main(RuntimeExec.java:21)