User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Execute Bat file with Java Page [1]  
BlackSheep
Suspended
1575 Posts
user info
edit post

I have created a bat file which telnets to execute server operations.

Can someone give an example of how to execute a .bat file with a java method?

9/2/2008 3:47:06 PM

Shaggy
All American
17820 Posts
user info
edit post

Runtime.getRuntime().exec("c:\\wheredabatsat\\dothing.bat");

[Edited on September 2, 2008 at 3:49 PM. Reason : or maybe ("cmd /C c:\\wheredabatsat\\dothing.bat");]

9/2/2008 3:48:49 PM

 Message Boards » Tech Talk » Execute Bat file with Java Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.