Dear Developers,
Hope you can help with the following:
I can successfully get the "dir" contents in the same way I do at the DOS prompt by doing the following:
Runtime runtime = Runtime.getRuntime();
Process proc = runtime.exec("cmd /c dir");
I can also run a perl script via:
Process proc = runtime.exec("cmd /c perl MyPerl.pl");
HOWEVER, the command I need to run is "ss.exe" which is part of VisualSource Safe. At the command prompt, I use this command with the "dir" argument to get a directory listing of the current Visual SourceSafe Database as follows:
c:\temp>ss dir
and I get the results in here.
For some reason, this does not work in
Java:
Process proc = runtime.exec("cmd /c ss dir");
I do not get an exception by doing this, and I tried to redirect the output to a file by:
Process proc = runtime.exec("cmd /c ss dir > out.txt");
The file "out.txt" gets created, but it is empty!!
How could I invoke Visual Source Safe command line arguments via Runtime.exe??
Thanks!
--Cecilia.