Originally posted by: Atheus
You're not the thought police Loke, besides, if he can't write a batch file he's not going to get far as an evil hacker is he?
Originally posted by: Atheus
You're not the thought police Loke, besides, if he can't write a batch file he's not going to get far as an evil hacker is he?
Blur: Windows doesn't come with a command line process lister/killer. You'll have to download pskill and use that from the batch file after waiting for the process to complete, like:
start X.exe
sleep Y
pskill Z
...
repeat
START /M "C:\WINDOWS\NOTEPAD.EXE"
TASKKILL /IM notepad.exe
SLEEP 1
START /M "C:\WINDOWS\NOTEPAD.EXE"
TASKKILL /IM notepad.exe
SLEEP 1
START /M "C:\WINDOWS\NOTEPAD.EXE"
TASKKILL /IM notepad.exe
Originally posted by: Atheus
Have you installed the latest Sun Java?
Originally posted by: Blur
Is Sun Java a different product?
Originally posted by: LoKe
If someone asked you to build them a nuke, would you do it?
C:\Documents and Settings\trd\Desktop>START /M "C:\WINDOWS\NOTEPAD.EXE"
Invalid switch - "/M".
C:\Documents and Settings\trd\Desktop>TASKKILL /IM notepad.exe
ERROR: The process "notepad.exe" not found.
C:\Documents and Settings\trd\Desktop>SLEEP 1
'SLEEP' is not recognized as an internal or external command,
operable program or batch file.
C:\Documents and Settings\trd\Desktop>START /M "C:\WINDOWS\NOTEPAD.EXE"
Invalid switch - "/M".
C:\Documents and Settings\trd\Desktop>TASKKILL /IM notepad.exe
ERROR: The process "notepad.exe" not found.
C:\Documents and Settings\trd\Desktop>SLEEP 1
'SLEEP' is not recognized as an internal or external command,
operable program or batch file.
C:\Documents and Settings\trd\Desktop>START /M "C:\WINDOWS\NOTEPAD.EXE"
Invalid switch - "/M".
C:\Documents and Settings\trd\Desktop>TASKKILL /IM notepad.exe
ERROR: The process "notepad.exe" not found.
Originally posted by: LoKe
What operating system are you using? I can't test the bat file right now, but it looks right to me.
Originally posted by: CalvinHobbes
In XP to start a program minimized it's "start /MIN C:\Windows\Notepad.exe"
Sleep.exe or Wait.exe need to be downloaded, they're not regular programs in windows.