1.

Solve : Anyone can help me for an simple bat file??

Answer»

I'm newbie in learning the bat file. Just try to use it this 2 days.
Now i face a problem to writing a bat file.

if i want to close an application using the bat file, how can i write it?

Is it like this "shutdown -f (application_name) " ??u know that doesnt do ANYTHING at all....well kinda just LOGS u off closing all app
only does something if u go like
shutdown -s -f
that will force shutdown closing all applicationno lordoftheplat, without '-t 00' then it will shutdown the computer. Without it the computer shuts down in 30 seconds.

That isn't what Lkoksoon wants....he wants a batch file to close a program. I don't know how to do it though.hmm u seem to not understand what i SAY carbon dudeoxide.... i just told him that
using shutdown -f wont do anything....
and wats up wif -t "00" i never even mention a single THING about timeTo close a programm use the "kill" command.
To find out the name off the process you want to kill use the "tlist" command.

for example:
kill soffice.exe

hope it helps
ulithat works?? i never knew..Quote

I'm newbie in learning the bat file. Just try to use it this 2 days.
Now i face a problem to writing a bat file.

if i want to close an application using the bat file, how can i write it?

Is it like this "shutdown -f (application_name) " ??
if you want to close a program and you are in XP, you can use taskkill.Quote
hmm u seem to not understand what i say carbon dudeoxide.... i just told him that
using shutdown -f wont do anything....
and wats up wif -t "00" i never even mention a single thing about time
Talking about your second post, lol

--------------------------------------------------

Ghostdog and uli_glueck, kill and taskkill doesn't work for me, Windows XPQuote
Ghostdog and uli_glueck, kill and taskkill doesn't work for me, Windows XP
what is your error messages?? if you search google for "Windows XP taskkill" , the very first result points you to M$ website. So taskkill is definitely a command in XP. Try to check taskkill /?. Or your PATH to DOS commands are not defined.
ya, i tried already. The taskkill is a MSDOS command and can use to end an application.

Now there is exist another problem, the taskkill only work in window 2000 and xp pro, so the xp home can't use that command. you can always try kill.exe from the windows resource kit. If you don't have the resource kit, you can download here.
Or you can download pskill . Not sure if they will work on XP home, but you can always give it a tryHow come taskkill doesn't work for me.......where is it located? e.g. system32you have to get the .exe file carbon dudeoxide and save the .exe into your sys32Nope. It doesn't matter though.


Discussion

No Comment Found