ok when i launched the .bat file it opens a exe , but how can i make it so it closes the process straight after its opened
Antil
Sep 9 2004, 07:04 AM
add a small line to the .bat file in which you tell it to kill the process

like: pskill.exe xxx.exe
do i need the app pskill.exe?
Antil
Sep 9 2004, 07:22 AM
yes, it will probably need to be in the same dir

hxxp://www.sysinternals.com/ntw2k/freeware/pskill.shtml
ok is there away to maybe do pskill after 30 secs or so , cause doing pskill i feel it does it to quick before its even loaded i think , i need to do some tests

this is what i have
@echo off
REGEDIT.EXE /s re11.REG
hiderun.exe try.exe
pskill.exe try.exe i want pskill to kill try.exe 15 seconds after its run

is it possible
exit
JoePub
Sep 9 2004, 08:48 AM
There is an exe that you can download called sleep (cant rememeber if it's COM or EXE) and basically you make sure that sleep is in your path enviroment and the in your bat file just add
| CODE |
sleep 15 pskill x.exe
|
Or you could just write a vbs script instead, you will have much more control then
Killaloop
Sep 9 2004, 09:40 AM
use the /c switch of cmd.exe to close the startet program after it executed.
cmd.exe /c myexe.exe
killaloop like this
hiderun.exe try.exe cmd.exe /c try.exe
DCLXVI
Sep 9 2004, 08:16 PM
like this i think Dickybob20
@echo off
hiderun.exe try.exe
cmd.exe /c try.exe
:end
Killaloop
Sep 10 2004, 08:00 AM
hide.exe cmd.exe /c C:\folder\try.exe
IcedOut3E
Sep 10 2004, 04:06 PM
if you still want to use the pskill, you could use the "at" command to run that program at the specified time.
tstngry
Sep 11 2004, 06:13 AM
-If you are using Windows Xp, there is a program included called taskkill.exe. It is used a s command in the following form:
taskkill /f /im program.exe
or
taskkill /f /pid 637 -- replace with process id
-This will kill the program imediatly so i dont know if you want to use this, however if you sleep the program using sleep.exe for a couple of secs and then kill it that might work. Hope this helps
x1`
Sep 14 2004, 11:15 PM
yes got the solution to making it close , now just need to make them delete
cant do del straight away because its needs time to open ,
so i need something on a timer to delete the files
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.