Salve a tutti , ho la necessità di far avviare degli script vbs con java , ma i risultati per adesso sono stati deludenti .........

Ho usato codici di questo tipo ma vanno bene solo per i file di tipo exe !!!

Ad esempio :

class eseguiExe
{
public static void main(String args[])
{
try{
Runtime rt=Runtime.getRuntime();
Process proc=rt.exec("Pluto.exe");
}
catch(Exception e){}
}
}


Oppure :

class eseguiExe
{
public static void main(String args[])
{
try{
Runtime r = Runtime.getRuntime();Process p = r.exec("C:\\Olivia\\Pluto.exe");
Process proc=r.exec("Pluto.exe");
}
catch(Exception e){}
}
}


Potreste aiutarmi ?





Ringrazio anticipatamente !