help deciphering

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
lookyboop
Posts: 3
Joined: 25 Dec 2012 06:01

help deciphering

#1 Post by lookyboop » 25 Dec 2012 06:05

what do you guys think this line in a batch file would do

java -jar file.jar d %variable% dis_%variable%

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: help deciphering

#2 Post by foxidrive » 25 Dec 2012 07:00

It launches file.jar and possibly passes some parameters

lookyboop
Posts: 3
Joined: 25 Dec 2012 06:01

Re: help deciphering

#3 Post by lookyboop » 25 Dec 2012 16:50

im trying to cross engineer this to work with linux, could you help me put with the everything after the jave -jar file.jar, i neeed to know as much about it as posssible so i can match it with a linux command

abc0502
Posts: 1007
Joined: 26 Oct 2011 22:38
Location: Egypt

Re: help deciphering

#4 Post by abc0502 » 25 Dec 2012 17:40

Linux uses different variables formats, beside the batch files doesn't work on Linux.
unless it's a programming language that work on both windows & Linux , i think cross platform software/script is impossible.

lookyboop
Posts: 3
Joined: 25 Dec 2012 06:01

Re: help deciphering

#5 Post by lookyboop » 25 Dec 2012 19:10

well im reprogramming it in bash. im sure i can get it to do what it does in windows., thats the beauty of computers

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: help deciphering

#6 Post by Squashman » 25 Dec 2012 19:32

lookyboop wrote:well im reprogramming it in bash. im sure i can get it to do what it does in windows., thats the beauty of computers

I am sure you can but this is for the most part a windows batch file forum. If you need help with bash scripting you will need to find another website to get help from.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: help deciphering

#7 Post by foxidrive » 25 Dec 2012 19:44

The point is that a Windows Java.exe will not run in Linux, will it? Maybe if you have Wine installled...


From a batch perspective
This code:

Code: Select all

set variable=abc
java -jar file.jar d %variable% dis_%variable%


Will cause the launching of the command line like this:
java -jar file.jar d abc dis_abc

Post Reply