You are here

Silent Command Prompt.

5 posts / 0 new
Last post
gluxon
gluxon's picture
Offline
Last seen: 4 years 3 months ago
Developer
Joined: 2008-06-21 19:26
Silent Command Prompt.

Many java programs and applications need a command prompt for the java to work.

So, is there a command you insert in the Batch file or is there a way to make an NSIS excutable launch a silent Batch file?

There is a way... I know that for sure.

roamer
roamer's picture
Offline
Last seen: 15 years 2 weeks ago
Joined: 2007-02-21 16:01
Well...

most java apps I use take command parameters from either command line or a launcher. I think you can pass the parameters the same way, such as:

app.exe --parameter1 --parameter2 --etc

I do not remember exactly how to do this in nsis, but I think it is in the same line where you type the program to execute. It's been a while since I tried this, and that was as a test anyway.

OliverK> you don't live on a cow
IRC: It brings out the best in all of us...Especially when tired.

gluxon
gluxon's picture
Offline
Last seen: 4 years 3 months ago
Developer
Joined: 2008-06-21 19:26
Well,

it's not really helpful unless you tell me the parameter....

Thanks.

ggcs.tk
Offline
Last seen: 15 years 9 months ago
Joined: 2008-11-18 22:42
in old ms dos code usually u

in old ms dos code usually u pass the -p after a command that usually requires a user input to remove user prompting for example
format c:\ -p

this erases c without asking do u want to confirm (rather nasty line to add to the start up batch file on certain old windows systems)
in old dos any way if thats of any help at all... i imagine there would be a way to prevent prompting as surly if its been around since day dot it would not be removed or neglected by newer versions of prompt.

i know u all do your best and i thank you for your patience

roamer
roamer's picture
Offline
Last seen: 15 years 2 weeks ago
Joined: 2007-02-21 16:01
well...

I think it may be something like:

../*Path to Java*/java.exe *name of java app*.jar -*parameters* 

The parameters will vary based on the app. If the app you are trying to launch comes with a bat launcher right click it and select edit. The required parameters will be off to the side in the line with the jar. Other than that, that's all I know.

OliverK> you don't live on a cow
IRC: It brings out the best in all of us...Especially when tired.

Log in or register to post comments