want to write batch file that call program

February 28, 2010 at 21:58:50
Specs: Windows XP, 2GB ram
i want to write a batch file that will call a program i.e written in java which will send an email as soon as smeone insert pendrive into any computer and i have to write batch file and program into pendrive..i want
u to help me out in writing batch file that should call program and all this thing should execute in the background..

See More: want to write batch file that call program

Report •

#1
March 1, 2010 at 03:27:30
Try creating two files, autorun.inf and my.bat, with the following content:

----------------------------
[autorun]
OPEN=my.bat
----------------------------
@echo hello
pause


=====================================
Helping others achieve escape felicity

M2


Report •

#2
March 2, 2010 at 10:34:15
thnks..yes i have created this file in pendrive and is running............now i have to write a program in java that should send email message (such as dont delete this message) to my email address..

Report •

#3
March 3, 2010 at 09:00:37
In that case I suggest you start a new thread since this one has nothing to do with writing a java email app.


=====================================
Helping others achieve escape felicity

M2


Report •

Related Solutions

#4
March 4, 2010 at 21:20:46
see i hv been given project called device tracker to do in java such that if some1 insert pendrive into their machine then batch file should call program and then that program should get copied into their machine nd should change the configuration of machine and should send the email to my email id and all this thing should happen in the background

Report •

#5
March 4, 2010 at 22:41:08
sounds kind of nasty to me...
i will hence think twice, or three times, about "inserting" anything anywhere lest STD occurs. thanks for the warning!

Report •

#6
March 5, 2010 at 22:29:59
sorry i dint get u.....i thnk ur suspecting me some different guy...itz jst like mobile tracker.........k......so u tel me how that bat file that is created will call a program.......i want 1 example.....i hope that commands for calling a program will have same and the parameters will change for different programs....

Report •

Ask Question