Shoutbox

[Request]File Runner - 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: [Request]File Runner (/showthread.php?tid=70571)

[Request]File Runner by Pengo on 01-11-2007 at 12:31 PM

Hi could someone make me a script that will run 2 files located in  C:\WINDOWS\system32\drivers\etc, Called "Allow.bat" and "Deny.bat" I pay for my internet and i have told my brothers(apart from one)that they cant use it but they still use it to check there emails so i have made bat files to delete hosts and copy another hosts file that blocks hotmail.com and login.live.  Could it use "!" triggers. Thank you very much, but if this cant be made thanks for taking the time to read this (Y)


RE: [Request]File Runner by markee on 01-11-2007 at 12:40 PM

How about in a chat you just write "/run C:\WINDOWS\system32\drivers\etc" without the quotes, or you could make a quick text to do this for you for both of the files.


RE: [Request]File Runner by Eljay on 01-11-2007 at 12:43 PM

This is possible by just using quick texts using Plus!'s /run command, just add a quicktext like so:

[Image: attachment.php?pid=777086]

EDIT: damn markee :P


RE: [Request]File Runner by Felu on 01-11-2007 at 12:43 PM

code:
Shell = new ActiveXObject("WScript.Shell");
Shell.Run("C:\\WINDOWS\\system32\\drivers\\etc\\Allow.bat");

RE: [Request]File Runner by Pengo on 01-11-2007 at 01:04 PM

quote:
Originally posted by Felu


Dont get how that works, what happens when i want to add the hosts file with the blocked ips?
RE: [Request]File Runner by Felu on 01-11-2007 at 01:51 PM

quote:
Originally posted by Pengo
quote:
Originally posted by Felu


Dont get how that works, what happens when i want to add the hosts file with the blocked ips?
code:
function Block(){
    Shell = new ActiveXObject("WScript.Shell");
  Shell.Run("C:\\WINDOWS\\system32\\drivers\\etc\\Block.bat");
}
function Allow(){
    Shell = new ActiveXObject("WScript.Shell");
  Shell.Run("C:\\WINDOWS\\system32\\drivers\\etc\\Allow.bat");
}


Or you could even use quicktexts [Image: msn_wink.gif].
RE: [Request]File Runner by Pengo on 01-11-2007 at 02:36 PM

i would rather a script just for it, so i dotn want to use quicktexts :). How i run the one u posted?


RE: [Request]File Runner by Ezra on 01-11-2007 at 04:20 PM

/script Block and /script Allow

You could also create a nice command for it.