execute batch file remotely java
I want to execute a bat file located remotely on server \\testserver\someFolderName\test.bat . I am using process builder and wanted to chande the directory with procbuilder.directory(....), but could not succeed. Any help is appreciated. Thanks In the past I've done it quick and dirty with PSExec Just start that from your program as its own process with the required arguments to gain access to the batch on the remote computer. NagendraPrakash Karri This is working code that we are using currently: try { ProcessBuilder launcher = new ProcessBuilder(); Map<String, String> environment = launcher