what is wrong in this?

Hey can anyone help me....i have a bat file in c:\ prompt..through JFrame i'm invoking this file but it is not opening...other commong like net send commond working properly....but when i'm writing this cmd..

Runtime.getRuntime().exec("file://c:\b.bat");

not working preperly...giving error.....like....

java.io.IOException: CreateProcess: file://c.bat error=2

so ple tell me what i should do..?

Thanks in advance

[452 byte] By [Ravijia] at [2007-10-3 3:57:05]
# 1
Strip file://
BIJ001a at 2007-7-14 21:55:24 > top of Java-index,Java Essentials,Java Programming...
# 2
... and replace "\" with "\\".
Michael.Nazarov@sun.coma at 2007-7-14 21:55:24 > top of Java-index,Java Essentials,Java Programming...
# 3
stilll giving the same problem......
Ravijia at 2007-7-14 21:55:24 > top of Java-index,Java Essentials,Java Programming...
# 4
1. Post your actuale code with changes.2. Ensure is there b.bat on drive c: :)
Michael.Nazarov@sun.coma at 2007-7-14 21:55:24 > top of Java-index,Java Essentials,Java Programming...
# 5
The bat file needs to be executed within a command shell. Try this out,Runtime.getRuntime().exec("cmd /c c:\\b.bat");
jwong78a at 2007-7-14 21:55:24 > top of Java-index,Java Essentials,Java Programming...