mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2003
Posts: 20
L
limp Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Apr 2003
Posts: 20
I'm just curious if there is any possible way to shutdown windows using mIRC.

Joined: Mar 2003
Posts: 437
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437

Joined: Apr 2003
Posts: 20
L
limp Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Apr 2003
Posts: 20
yea that's cool and all, but is there some file in windows that controls the shutdown mechanism, cus I wanna tell mirc to run that and shutdown windows

Joined: Mar 2003
Posts: 437
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
well if you just use this dll all you gotta run is this::
//echo -a $dll(winsd.dll,ShutDown,.)

i dont think there is a "file" you can just run...

Joined: Dec 2002
Posts: 204
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
Look at this page Here from Tech TV which tells you how to use windows to shutdown without going through the startmenu. HTH


keek: Scots - intr.v. keeked, keekĀ·ing, keeks
To peek; peep.
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You could try this.
//run C:\WINDOWS\System32\logoff.exe
smile

Or create a batch file, and use the following commands,
"@echo off
C:\WINDOWS\System32\logoff.exe
exit"
smile

Joined: Dec 2002
Posts: 204
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
you are correct sir/madam, you could use something like this in your mirc to LOGOFF:

/run c:\windows\system32\logoff.exe

BUT if ya wanna shutdown, like the original poster wants, then ya have to use something like:

/run c:\windows\system32\shutdown.exe -s -t 01
the -s tells the computer to shutdown, the -t sets the timeout in seconds to 01

that is if he has an XP system, if he has a windows 95,98,ME, then he needs to use:
/run C:\windows\rundll.exe user.exe,exitwindows



keek: Scots - intr.v. keeked, keekĀ·ing, keeks
To peek; peep.
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Well done Keeker, I forgot about that detail. smile
and I am 16 m UK, so yes I am a Sir.. wink

Joined: Apr 2003
Posts: 20
L
limp Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Apr 2003
Posts: 20
Damn, keeker whoeveryou're like 00ber l337. Thx for the info and the site. It works now.

Last edited by limp; 06/04/03 04:41 AM.
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
That'll work on some systems, but not all. On this PC, my Windows folder is on the D drive, not the C. And for WinNT the default is C:\winnt not C:\windows.


Link Copied to Clipboard