vendredi 6 mars 2015

I'm running an java application from .bat, but it doesn't connect with my database

I'm launching my application from .bat to prevent can open twice. This is my .bat :



@ECHO OFF
tasklist /FI "IMAGENAME eq program.exe" | find "program.exe" > NUL
IF "%ERRORLEVEL%" neq "0" (
program
)


The problem is that when I open the app with this .bat, the app doesn't connect with the Data Base (I'm using SQLite). I don't know where is the problem, when I open the app form .exe, the app works fine.


Thank you.


Aucun commentaire:

Enregistrer un commentaire