Shoutbox

.BAT or shortcut - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: .BAT or shortcut (/showthread.php?tid=72497)

.BAT or shortcut by matty123 on 03-09-2007 at 08:55 PM

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


RE: .BAT or shortcut by MrT on 03-09-2007 at 09:18 PM

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 ;)
RE: .BAT or shortcut by matty123 on 03-09-2007 at 09:41 PM

Thanks it did :) I will mention you in the ''thanks to'' section.


RE: .BAT or shortcut by scott2010_h on 03-09-2007 at 09:51 PM

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.:)


RE: .BAT or shortcut by roflmao456 on 03-09-2007 at 09:53 PM

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 :(
RE: .BAT or shortcut by matty123 on 03-09-2007 at 09:59 PM

Hey thanks, is there anyway to test it i dont want to formatt :)


RE: .BAT or shortcut by Ezra on 03-09-2007 at 10:57 PM

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


RE: .BAT or shortcut by Baggins on 03-09-2007 at 11:21 PM

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:
RE: .BAT or shortcut by CookieRevised on 03-09-2007 at 11:51 PM

Am I the only one who thinks those requests sound a least a bit fishy?

Shutting down a PC?
Removing everything from the harddrive?


RE: .BAT or shortcut by WDZ on 03-10-2007 at 12:02 AM

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-)