WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: jkjk12 on September 29, 2014, 07:05:56 AM

Title: Have .EXE run in TaskMan ?
Post by: jkjk12 on September 29, 2014, 07:05:56 AM
I have a WinBatch .exe that I need to run in TaskMan.  I want to always run in Taskman since it will monitor data.  How do I do that? 
Title: Re: Have .EXE run in TaskMan ?
Post by: td on September 29, 2014, 07:44:44 AM
Assuming you mean that you want your script to start when a user logs in, you could simply place a shortcut to the script in the 'Startup' folder or you could write your script as a service.
Title: Re: Have .EXE run in TaskMan ?
Post by: td on September 29, 2014, 07:56:38 AM
Neglected to mention that there are many other ways to start a process at Windows startup or user login.  Here is another approach using registry keys

http://msdn.microsoft.com/en-us/library/aa376977(v=vs.85).aspx (http://msdn.microsoft.com/en-us/library/aa376977(v=vs.85).aspx) 
Title: Re: Have .EXE run in TaskMan ?
Post by: DAG_P6 on September 30, 2014, 12:23:06 AM
If you mean Task Scheduler, that's easy. Create a new task, browse to the file (or paste its path from the clipboard, with a little help from the Clipboard Tricks macros), and follow the instructions. For the most part, a compiled script is just like any other program.
Title: Re: Have .EXE run in TaskMan ?
Post by: snowsnowsnow on September 30, 2014, 12:26:50 AM
Funny.  My impression on seeing this thread was that by "TaskMan", he meant the Systray.

In which case, IntControl(1007) is your friend.
Title: Re: Have .EXE run in TaskMan ?
Post by: td on September 30, 2014, 01:07:53 PM
Maybe "TaskMan" is  some retro game like Pacman.