Hello all
Every morning I get a %1 parametre to be exxecuted. It can be a BAT file or an XML file. The %1 parametere look like this : "c:\folderX\subfolder\filename.bat" or it can be "C:\folderX\subfolder\filename.xml".
Depending of the extention a command in my "Run.bat" file is executed. I tryied with
echo on
SET Root=c:\jdk122
SET Java=c:\jdk122\bin
set classpath=c:\jdk122\lliutils2.jar
java iso.apps.lliloader localhost user/password %1
%1
The last %1 is in case the file is a BAT file, then it will be executed, I get an error from the java parser t´hat the file coulld not be parsed and it's OK. but when it's a XML file the parser do the job correctly, but the last %1 call Notepad.exe and the file i opened on it.
Question : How to close the notepad.exe with a command in a bat file
Thanks every one