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[ at ]discussions.microsoft.com> wrote in message news:80C0B1DE-0FE0-4491-B614-B4575173155D[ at ]microsoft.com...
[Quoted Text] >I hane a script > wher can I write it to be run or activated?
|