Archives for: January 2009

01/22/09

Permalink 02:35:38 pm, by dave Email , 588 words, 328 views   English (US)
Categories: Windows Scripting, Wsh Scripts

Query Scheduled Tasks using VBScript

For anyone who ever tried to query the scheduled tasks on a Windows machine using windows script host (e.g. vbscript) and received unexpected results or missing tasks, that is because there are two ways to work with scheduled tasks. One way uses the NetSchedule API set and the second uses the Task Scheduler COM interface. There is a scriptable interface for the NetSchedule API set, we know it as WMI.

Pages: 1 2 3

Leave a commentTrackback (0)

Did you like this post? If so, Share it!  del.icio.us digg reddit slashdot this article Facebook Twitter MySpace Email
Permalink 04:43:19 am, by dave Email , 213 words, 192 views   English (US)
Categories: Windows Scripting, Wsh Scripts

How to make sure that a script is run using cscript

Most of the scripts I write are intended to be called from the command window using cscript.exe. Something like.....( the nologo argument gets rid of the title block that cscript spits outs everytime it runs )

C:\scripts>cscript /nologo someScript.vbs

Recently I ran into a situation where a script was being called using wscript.exe instead and the script was not acting properly. After a little research, I came up with this solution:

Read more! »

Leave a commentTrackback (0)

Did you like this post? If so, Share it!  del.icio.us digg reddit slashdot this article Facebook Twitter MySpace Email

Scripts

This is somewhere I can post interesting snippets as I come across them. Hopefully some folks out there will find this helpful.

Search

Follow Me:

Misc

Who's Online?

  • Guest Users: 6

powered by b2evolution free blog software