Re: wher can I write the script to be run
- From: "CreateWindow" <createwindow@xxxxxxxxx>
- Date: Wed, 9 May 2007 10:19:27 +1000
Dear dedo,
You can write it in Notepad. Give your script the extension .vbs
It then executes when you double click it in the Windows shell Explorer.
(This calls wscript.exe to run it).
You can set up a scheduled task to run it when nobody is logged on. Make
sure you don't have any MsgBox commands or other stuff that will "pop up" in
the scheduled task as this will hang the script as you can't see the OK
button on the MsgBox if you are not logged on! (Or the task is running with
different credentials to the regular logged in credentials. Typically this
is the case in server monitoring etc.)
In a command prompt you can run the script with wscript or cscript. Usually
cscript is going to be better for background tasks and batch jobs. The
command looks like C:\>cscript myscript.vbs
You can use .js too (if you like JavaScript).
http://www.microsoft.com/technet/scriptcenter/default.mspx
CreateWindow
http://justpageprobe.com
The FREE Web page utility you always wanted.
Monitor your enterprise Web Servers.
Keep your router connected.
Email your IP to where you need it.
"dedo" <dedo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:80C0B1DE-0FE0-4491-B614-B4575173155D@xxxxxxxxxxxxxxxx
I hane a script
wher can I write it to be run or activated?
.
- Prev by Date: Re: nEED HELP WITH LOGIN SCRIPT
- Next by Date: Re: Need a script to find the systems in AD or not?
- Previous by thread: Re: Logon Script Assistance
- Next by thread: Combining Multiple VB Scripts
- Index(es):