Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: If Exist  (Read 3280 times)

0 Members and 1 Guest are viewing this topic.

souidr

  • Guest
If Exist
« on: September 24, 2004, 07:08:04 AM »
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

merlin_2

  • Guest
Re: If Exist
« Reply #1 on: September 25, 2004, 02:09:53 PM »