WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Using MS System Agent to Run a WBT File

Keywords:  MS System Agent  

Question:

Is there some way to schedule a winbatch file(wbt) to run in system agent? System agent come with Microsoft Plus.

Answer:

In System Agent under Program - Schedule a new program, just fill in the path and file of the WBT file, for example C:\WBT\I\IDXDRIVE.WBT.

I've tried it; it works. You can have it run a WBT according to a schedule you set up in System Agent, like any other program. System Agent will run anything.

If your command line is something like:


"C:\Program Files\WinBatch\system\WinBatch.exe" "C:\PROGRAMS\System Agent\Oct1.wbt"
make sure you put double quote marks around both parameters, if they contain spaces in them, otherwise you will get the error message: Specified Winbatch file not found.

How to Launch System Agent Question:

I just started using WinBatch (very cool so far) & am trying to figure out how to launch the MS-Plus! System Agent from my code. For anyone not familiar with System Agent, it's a scheduler app like WinAT for NT that sits in the Win95 taskbar tray. Any suggestions?

Answer:

Actually for this particular trick quite a bit of smoke, magic and undocumented pixie dust is required. In any case try...

Run("EXPLORER.EXE","::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{D6277990-4C6A-11CF-8D87-00AA0060F5BF}")
As a single line.

To determine what to enter in the second parameter above:

  1. Bring up the window you want manually.
    "Scheduled Tasks" ??

  2. Note the name of the window without the "Explorer" part.

  3. Search the registry for this title.
    Try to find it in the HKEY_CLASSES/CLSID/... section. Use the number you find there to replace the SECOND number in the string.
    Leave the :'s alone.

Article ID:   W13196
Filename:   Using MS System Agent to Run a WBT File.txt
File Created: 2001:01:26:13:33:02
Last Updated: 2001:01:26:13:33:02