public class DirDemo
{
public static void main(String[] args)
{
Process dir = Runtime.getRuntime().exec("dir");
BufferedReader dirOut = new BufferedReader(
new InputStreamReader(dir.getInputStream()));
while (String line = dirOut.readLine() != null)
{
System.out.println(line);
}
}
}
eNc
Posted: Wed Nov 10, 2004 8:05 pm Post subject: (No subject)
dodge_tomahawk wrote:
what types of commands are u talkin about? things like shutdown, ipconfig, netsend? or like dir, cd..
yea mainly shutdown lol
eNc
Posted: Wed Nov 10, 2004 8:05 pm Post subject: (No subject)