Batch werk niet zoals ik wil..? HELP!

Status
Niet open voor verdere reacties.

Juzzz

Gebruiker
Lid geworden
15 jan 2008
Berichten
281
Hallo allemaal ik ben een fake batch aan het maken.
het lijkt of je word gehackt maar er gebeurd eigenlijk niets.

In de batch wil ik wat programma's openen en sluiten maar het werkt alleen bij de eerste en verder niet?

kan iemand zeggen wat ik fout doe?
HTML:
@echo off
cls
"C:\PROGRAM FILES\COMMON FILES\MICROSOFT SHARED\MSINFO\msinfo32.exe"
ping localhost /n 2 >nul
taskkill /f /im helpctr.exe
sysdm.cpl
ping localhost /n 2 >nul
taskkill /f /im rundll32.exe
regedit
ping localhost /n 2 >nul
taskkill /f /im regedit.exe
gpedit.msc
ping localhost /n 2 >nul
taskkill /f /im mmc.exe
services.msc
ping localhost /n 2 >nul
taskkill /f /im mmc.exe
pause

Het is totaal veilig geen zorgen
 
als je het op een "XP home" will draaien zal het wel niet werken omdat deze standaard "GEEN" taskkill en gpedit heeft... :)

Verder lijkt het erop dat het te snel gaat en het cmd taskill al word gestart voordat de applicatie of consolle geladen is.
 
Laatst bewerkt:
Maar goed dat ik op Pro werk.
maar nog steeds geen antwoord op me vraag :(
 
probeer het eens zo

Code:
@echo off
cls
"C:\PROGRAM FILES\COMMON FILES\MICROSOFT SHARED\MSINFO\msinfo32.exe"
ping localhost /n 2 >nul
taskkill /f /im helpctr.exe
start sysdm.cpl
ping localhost /n 2 >nul
taskkill /f /im rundll32.exe
start regedit
ping localhost /n 2 >nul
taskkill /f /im regedit.exe
start gpedit.msc
ping localhost /n 2 >nul
taskkill /f /im mmc.exe
start services.msc
ping localhost /n 2 >nul
taskkill /f /im mmc.exe
pause

:)
 
Status
Niet open voor verdere reacties.
Steun Ons

Nieuwste berichten

Terug
Bovenaan Onderaan