[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 963
  • Last Modified:

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
0
John Account
Asked:
John Account
  • 2
  • 2
1 Solution
 
owensleftfootCommented:
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

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now