MSFN Forum: runonce and taskkill trouble - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

runonce and taskkill trouble Rate Topic: -----

#1 User is offline   Sesshoumaru 

  • Member
  • PipPip
  • Group: Members
  • Posts: 146
  • Joined: 11-August 04

Posted 21 August 2004 - 10:08 AM

i am installing some aps with this method, but 2 of them need to be "killed" after instalation.

o followed the examples but it isn't closing em.

do i need an executable "called" taskkill placed somewhere ?

this are my lines:

REG ADD %KEY%\044 /VE /D "quintesential player" /f
REG ADD %KEY%\044 /V 1 /D "%systemdrive%\install\quint\quint.exe /S" /f
REG ADD %KEY%\025 /V 2 /D "taskkill.exe /F /IM qcdplayer.exe" /f

REG ADD %KEY%\025 /VE /D "IsoBuster 1.6" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\Applications\ISObuster\IsoBuster16.exe /VERYSILENT /SP-" /f
REG ADD %KEY%\025 /V 2 /D "taskkill.exe /F /IM isobuster.exe" /f


#2 User is offline   Aaron 

  • The MSFN Banana
  • Group: Patrons
  • Posts: 5,767
  • Joined: 17-August 01
  • OS:ME
  • Country: Country Flag

Posted 21 August 2004 - 10:57 AM

Taskkill may have executed too early and didn't find the running process. I can only suggest giving a pause of 10 seconds or so using sleep.exe

#3 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

Posted 21 August 2004 - 11:01 AM

can u pls post and example of sleep.exe

#4 User is offline   Bâshrat the Sneaky 

  • aka Wim Leers
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,214
  • Joined: 29-October 03
  • OS:none specified
  • Country: Country Flag

Posted 21 August 2004 - 11:03 AM

Astalavista, on Aug 21 2004, 07:01 PM, said:

can u pls post and example of sleep.exe

Get sleep and run "sleep /?" to see possible commands. ;)

#5 User is offline   BetaDroid™ 

  • Beta Be Good
  • Group: Members
  • Posts: 35
  • Joined: 16-December 03

Posted 21 August 2004 - 12:54 PM

Its here http://unattended.ms...p/downloads.htm

#6 User is offline   CoffeeFiend 

  • Coffee Aficionado
  • Group: Super Moderator
  • Posts: 5,260
  • Joined: 14-July 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 August 2004 - 02:11 PM

Nice. That might replace one of my vbscripts then (because of the simplicity). My script was going thru the list of active tasks, looking for the right app, if not found wait, then repeat until app is active or it times out (tweakable). Then if time is active it terminated it's process... (mostly using WMI)

#7 User is offline   Sesshoumaru 

  • Member
  • PipPip
  • Group: Members
  • Posts: 146
  • Joined: 11-August 04

Posted 21 August 2004 - 04:25 PM

i'll try sleep.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy