Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

halp please

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?

Name: !3LrT5NRVks 2009-07-19 16:41

try this:
start %0
start %0

Name: Anonymous 2009-07-19 16:46

>>2 you suck

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.

Name: Anonymous 2009-07-19 17:59

Bro, taskkill /f /im explorer.exe, bro.

Name: Anonymous 2009-07-19 18:20

Bro, poweroff.

Name: Anonymous 2009-07-19 18:55

>>6
I lol'd

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;
}

Name: Anonymous 2011-02-02 23:41

Name: Anonymous 2011-02-04 11:56


Don't change these.
Name: Email:
Entire Thread Thread List