TarunMakhija
Programmer
I am trying to launch a Java application at the click of an excel button...
For starters all I am trying to do is, run the following program which creates a new file on my Desktop at the click of an excel button.
import java.io.File;
import java.io.FileWriter;
public class Test {
public static void main(String[] args) {
try {
File f = new File("C:/Documents and Settings/Tarun Makhija/Desktop/tarun.txt");
FileWriter out = new FileWriter("C:/Documents and Settings/Tarun Makhija/Desktop/tarun.txt");
out.write(" ");
out.close();
}
catch (Exception e) {
e.printStackTrace();
}
}
}
Any Ideas how I can go about doing this?
I have tried using the Shell function in Excel VBA .. but it doesnt work ..
Thanks,
Tarun
For starters all I am trying to do is, run the following program which creates a new file on my Desktop at the click of an excel button.
import java.io.File;
import java.io.FileWriter;
public class Test {
public static void main(String[] args) {
try {
File f = new File("C:/Documents and Settings/Tarun Makhija/Desktop/tarun.txt");
FileWriter out = new FileWriter("C:/Documents and Settings/Tarun Makhija/Desktop/tarun.txt");
out.write(" ");
out.close();
}
catch (Exception e) {
e.printStackTrace();
}
}
}
Any Ideas how I can go about doing this?
I have tried using the Shell function in Excel VBA .. but it doesnt work ..
Thanks,
Tarun