Just starting out? Need help? Post your questions and find answers here.
kane
User
Posts: 23 Joined: Sun May 15, 2005 9:28 pm
Post
by kane » Tue May 31, 2005 3:04 am
Ok I'm making this launcher and I currently use this batch.bat
Code: Select all
@echo off
:: Find the directory of this script
pushd %~dp0
:: Open Java
javaw -classpath "%CD%\irc.jar;%CD%\pixx.jar" irc.IRCApplication -f "%CD%\pjirc.cfg"
:: Return them to where they were.
popd
People like why not use prog$ way well when I launch .bat file one problems is the dos window does not close not even with exit at the end also thought be nice was more built in if possible..
Maybe someone has a good idea how get this work inside PB or even get so batch window closes once java opened..
kane
User
Posts: 23 Joined: Sun May 15, 2005 9:28 pm
Post
by kane » Tue May 31, 2005 4:26 pm
bumper
Trond
Always Here
Posts: 7446 Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway
Post
by Trond » Tue May 31, 2005 5:46 pm
1) It's compile, not vompile! (made my day!!!
)
Why not:
Code: Select all
RunProgram("javaw -classpath "%CD%\irc.jar;%CD%\pixx.jar" irc.IRCApplication -f "%CD%\pjirc.cfg"")
Except you have to use chr(asci) to get your double quotes working.
kane
User
Posts: 23 Joined: Sun May 15, 2005 9:28 pm
Post
by kane » Tue May 31, 2005 8:59 pm
not sound n00b looks good but can't run im guessing cuz this
"Except you have to use chr(asci) to get your double quotes working."
whats that mean hehe I'm total n00b I'm supprised I'm abl;e make small programs hehe
Trond
Always Here
Posts: 7446 Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway
Post
by Trond » Wed Jun 01, 2005 9:04 am
It means you have to substitute all the double quotes inside the string with
" + chr(34) + "
something like this:
Code: Select all
RunProgram("javaw -classpath " + chr(34) + "%CD%\irc.jar;%CD%\pixx.jar" + chr(34) + " irc.IRCApplication -f " + chr(34) + "%CD%\pjirc.cfg" + chr(34))
NoahPhense
Addict
Posts: 1999 Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida
Post
by NoahPhense » Wed Jun 01, 2005 11:42 am
Trond wrote: 1) It's compile, not vompile! (made my day!!!
)
Maybe he lives in Transylvania..
- np