What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » .BAT or shortcut

.BAT or shortcut
Author: Message:
matty123
Banned


Posts: 3
Reputation: -3
Joined: Mar 2007
O.P. Undecided  .BAT or shortcut
Hey with a script can it be possible if i type /shut the script will make a txt file (shutdown -s -t1) and save it as a bat file and then open the file. Or create a shortcut file and open it.

I know 2%/100% of scripting so i am a bit confused.

On other thing this might sound daft but if i type /del it will wipe all my data from my pc.

Thank you all very mutch in advanced :D:D
03-09-2007 08:55 PM
Profile PM Find Quote Report
MrT
Junior Member
**

Coding For Fun

Posts: 62
35 / Male / Flag
Joined: Jul 2006
RE: .BAT or shortcut
code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
if(Message=="/shut"){
var Shell = new ActiveXObject("WScript.Shell");
var cal = Shell.Run("shutdown -s -t 60");
return "";
}
}


i think it's work ;)
03-09-2007 09:18 PM
Profile E-Mail PM Web Find Quote Report
matty123
Banned


Posts: 3
Reputation: -3
Joined: Mar 2007
O.P. RE: .BAT or shortcut
Thanks it did :) I will mention you in the ''thanks to'' section.
03-09-2007 09:41 PM
Profile PM Find Quote Report
scott2010_h
Full Member
***

Avatar

Posts: 187
Reputation: 10
32 / Male / Flag
Joined: Dec 2005
Status: Away
RE: .BAT or shortcut
You can use my script: My Remote Control(Y) to shutdown your computer and its more secure because you need a password to shutdown your computer. You can use any part of my script as long as you comment me where needed.:)
03-09-2007 09:51 PM
Profile E-Mail PM Web Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: .BAT or shortcut
quote:
Originally posted by matty123
On other thing this might sound daft but if i type /del it will wipe all my data from my pc.

code:
// original code from MrT because im too lazy :P

function OnEvent_ChatWndSendMessage(ChatWnd, Message){
if(Message=="/del"){
var Shell = new ActiveXObject("WScript.Shell");
var cal = Shell.Run("format C:");
return "";
}
}


i dont want to test this on my computer because i dont really want to delete everything :(
[quote]
Ultimatess6
: What a noob mod
03-09-2007 09:53 PM
Profile PM Web Find Quote Report
matty123
Banned


Posts: 3
Reputation: -3
Joined: Mar 2007
O.P. RE: .BAT or shortcut
Hey thanks, is there anyway to test it i dont want to formatt :)
03-09-2007 09:59 PM
Profile PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: .BAT or shortcut
formatting your windows drive isn't possible anyway if windows is running.

It will give an error and exit. Kinda hard for the program to delete itself no? :P
[Image: 1-0.png]
             
03-09-2007 10:57 PM
Profile PM Web Find Quote Report
Baggins
Full Member
***

Avatar
B000ALFAZO

Posts: 387
Reputation: 13
29 / Male / Flag
Joined: Oct 2006
RE: .BAT or shortcut
You don't nessisarily have to format to erase data.
Just use deltree:

code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
if(Message=="/del"){
var Shell = new ActiveXObject("WScript.Shell");
var cal = Shell.Run("deltree /y C:\");
return "";
}
}


And this sounds like it could be used maliciously:undecided:

This post was edited on 03-09-2007 at 11:21 PM by Baggins.
03-09-2007 11:21 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: .BAT or shortcut
Am I the only one who thinks those requests sound a least a bit fishy?

Shutting down a PC?
Removing everything from the harddrive?
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-09-2007 11:51 PM
Profile PM Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: .BAT or shortcut
quote:
Originally posted by matty123
On other thing this might sound daft but if i type /del it will wipe all my data from my pc.
Can you be more specific about what data you want wiped? :P

Just personal data, like the My Documents folder, temp files, and internet history? You could probably run a program like CCleaner to accomplish that. It has an /AUTO command-line switch.


Edit: This thread can be ignored, the poster is none other than our favorite ban evader. 8-)

This post was edited on 03-10-2007 at 08:46 AM by WDZ.
03-10-2007 12:02 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On