i'm using one vbscript file to convert mass excel files into txt files.It is working fine.
I want to do the same operation through the java code . I'm trying to execute the file from java code like
try {
Runtime.getRuntime().exec("wscript C:\\Datas\\xl2tab.vbs");
} catch (IOException ex) {
Logger.getLogger(convertFile.class.getName()).log(Level.SEVERE, null, ex);
}
I'm getting an error like

Anyone have an idea to run the script file from java code..?
wscript, and it is running your VBS script. Within the VBS script it is failing to find the file that it mentions. It fails at line 52. We can't really guess what is going wrong inside the script without a listing…