0

I have a program right now that uses the "net use" command to access a shared drive on a network computer at my work. This works fabulously and I'm able to copy a file from the remote machine onto my own using the FileUtil library from apache. Now I'm wanting to run batch file located on the remote machine and I want it executed in that environment not my own local machine. At first I thought I could just use the "net use" command again with no problem but when I execute the batch file, it is run on my own machine not the remote one. However, this is not what I want to happen.

So, is anyone familiar with this process of executing batch files on remote machines. Better yet, from inside Java.

Thank you for any feed back I greatly appreciate it!

1 Answer 1

1

I don't know much about java but can you execute external programs from it? If the answer is "yes" you might try with PSEXEC from Sysinternals it runs every kind of things remotely.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.