Telnet command to run .bat file

I'm using Putty.  Can one anyone tell me the Telnet command to run a .bat file.  The .bat file name I want to run is named run.bat. I tried just entering the file name and hitting Enter, but that doesn't work. Your help would be much appreciated.

Many Kind Thanks In Advance,
John
John AccountAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
owensleftfootConnect With a Mentor Commented:
Is this .bat file on a linux box?  Linux doesnt tell what to do with a file by the extension like windows - you have to make it executable. chmod +x run.bat will do this. Run it by typing ./run.bat from the directory rum.bat is in.
0
 
John AccountAuthor Commented:
I did that and got the following error: ./run.bat: line 1: java: command not found

Know what that means?
0
 
owensleftfootCommented:
Its obviously a java script file. Either you dont have java installed or the first line of the script has an incorrect path for java.
0
 
John AccountAuthor Commented:
Hi owensleftfoot. Your solution worked. I discovered that the reason it wasn't working before was because my jar files don't work with the newest version of the Java JRE. So, after, installing an older JRE, and using your help, everything was smooth. Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.