I start my java program from "Start.bat" and I would like to start it automatically from autoexec.bat. Would you give me an example for Windows XP please?
arun mahajan
Ranch Hand
Joined: Dec 07, 2001
Posts: 304
posted
0
Manuel if you look at the start.bat you most like to find that: 1. It has set the classpath 2. Or perhaps Path too. Setting path means you can get your all java executable files from any directory(or path). Again classpath will let the java compile to look into the classes which it needed from the API at the time of compilation/running. To make life easier perhaps the better way is to set these two things into the Enviorment variables of your computer and it will be available for every path.. I am sorry I don't have XP with me..you have to look into it for exact steps. Hope it will help.. regards, Arun
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
posted
0
Manuel, I'm not sure that I understand what you are trying to do. Could you expand your explanation?
Yes, I would like my "start.bat" to be started everytimes I turn on my pc.
arun mahajan
Ranch Hand
Joined: Dec 07, 2001
Posts: 304
posted
0
if i am understanding your requirement properly and you're not satisfied with my earlier answer,perhaps writing a new line with text"c:\temp\start.bat" will work here c:\temp is the path where start.bat is laying. Arun
Manuel Paco
Ranch Hand
Joined: Sep 23, 2001
Posts: 58
posted
0
Thanks Arun but I think you don't understand what I need. My batch file works just fine. I just need it to be running when I turn on my PC.
Marilyn de Queiroz
Sheriff
Joined: Jul 22, 2000
Posts: 9033
10
posted
0
Do what Rene suggested.
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt