Go Back   Morocco.com Discussion Forum > Open Board/Forum Libre > Computer / Internet


Windows Scripting Host-JScript

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 18th October 2005, 11:31
Trojan's Avatar
Trojan Trojan is offline
Moderator
 
Join Date: Jan 2005
Location: London - United Kingdom
Posts: 233
Send a message via ICQ to Trojan Send a message via AIM to Trojan Send a message via MSN to Trojan Send a message via Yahoo to Trojan Send a message via Skype™ to Trojan
Windows Scripting Host-JScript

Hi All

Been a while,
The following is a script demonstrating the use of external Command-line Programs From within JScript, here I create a custom shutdown, restart and log out sortcut, etc ...
have a look at the link below,
Hope ya'll find it useful.

http://marocchat.org/viewtopic.php?t=725

Peace out
__________________
Private Message
Email

mIRC Chat
Reply With Quote
  #2 (permalink)  
Old 7th November 2005, 12:43
Trojan's Avatar
Trojan Trojan is offline
Moderator
 
Join Date: Jan 2005
Location: London - United Kingdom
Posts: 233
Send a message via ICQ to Trojan Send a message via AIM to Trojan Send a message via MSN to Trojan Send a message via Yahoo to Trojan Send a message via Skype™ to Trojan
The Link above requires login

just surf to the scripting section in the forum of the site below.
http://marocchat.org/
__________________
Private Message
Email

mIRC Chat
Reply With Quote
  #3 (permalink)  
Old 18th November 2005, 18:16
Trojan's Avatar
Trojan Trojan is offline
Moderator
 
Join Date: Jan 2005
Location: London - United Kingdom
Posts: 233
Send a message via ICQ to Trojan Send a message via AIM to Trojan Send a message via MSN to Trojan Send a message via Yahoo to Trojan Send a message via Skype™ to Trojan
J/Java Script (Windows Scripting Host)

Sorry about the size of the screenshots I cannot control it with vB code in this forum, These screenshots are of Windows XP Pro, It might look like Mac OSX but it's not, It's just WinXP heavily Modified to look like Mac OSX Panther.

please note that the post below is identical to the one posted exernally on the link above.


Here's Some useful things you can do with JavaScript On Windows XP

Place Following Code in a text file named Log Off.js

var objShell = new ActiveXObject("Shell.Application");
objShell.ShellExecute("shutdown.exe", "-t 00 -l -f", "", "open", 0);


This is in a file named Restart.js

var objShell = new ActiveXObject("Shell.Application");
objShell.ShellExecute("shutdown.exe", "-t 00 -r -f", "", "open", 0);


This inside Shutdown.js

var objShell = new ActiveXObject("Shell.Application");
objShell.ShellExecute("shutdown.exe", "-t 00 -s -f", "", "open", 0);



Double Click on The Saved Files To Log Off, Restart or Shutdown Windows XP Or Create Shortcuts and put them in ur taskbar or launcher bar.


This following code needs ERB.exe, this is commandline utility to empty the trash and windows clipboard.

Place the following code in Emptytrashandclipboard.js
and Put it in the same directrory as erb.exe

var objShell = new ActiveXObject("Shell.Application");
objShell.ShellExecute("erb.exe", "/CLIP /Hide", "", "open", 0);


Download Everything Here

Peace Out
__________________
Private Message
Email

mIRC Chat
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:17.


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC4 © 2006, Crawlability, Inc.