473,406 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Schedule the launch of a program

I have this application I have made that I launch when the user logs
into Windows XP.
I would like to delay the launch of the application so that it starts 1
minute after the user has logged in.

I previously did this with a sleep at the first row of the source code,
but this makes the process visible in the task manager's processes tab
during the sleep (before the "real application" is actually running),
and I dont want that.

Can I somehow schedule the start of the application, either via a
command line tool or from code (c#) or in some other way?

Nov 28 '06 #1
8 1968
DL
A batch file, with a pause. ?

"Marcus" <ma************@koping.netwrote in message
news:11**********************@14g2000cws.googlegro ups.com...
I have this application I have made that I launch when the user logs
into Windows XP.
I would like to delay the launch of the application so that it starts 1
minute after the user has logged in.

I previously did this with a sleep at the first row of the source code,
but this makes the process visible in the task manager's processes tab
during the sleep (before the "real application" is actually running),
and I dont want that.

Can I somehow schedule the start of the application, either via a
command line tool or from code (c#) or in some other way?

Nov 28 '06 #2
Thanks for answering...

but doesn't the pause command demand interaction from the user, Like
"press any key to continue"? If that is the case then I can not use
that.

DL skrev:
A batch file, with a pause. ?

"Marcus" <ma************@koping.netwrote in message
news:11**********************@14g2000cws.googlegro ups.com...
I have this application I have made that I launch when the user logs
into Windows XP.
I would like to delay the launch of the application so that it starts 1
minute after the user has logged in.

I previously did this with a sleep at the first row of the source code,
but this makes the process visible in the task manager's processes tab
during the sleep (before the "real application" is actually running),
and I dont want that.

Can I somehow schedule the start of the application, either via a
command line tool or from code (c#) or in some other way?
Nov 28 '06 #3
How about scheduling the process to run using the "AT" command, and
specify the time you want it to run on the command line, like so:

at 8:01 /interactive notepad.exe

John

Marcus wrote:
I have this application I have made that I launch when the user logs
into Windows XP.
I would like to delay the launch of the application so that it starts 1
minute after the user has logged in.

I previously did this with a sleep at the first row of the source code,
but this makes the process visible in the task manager's processes tab
during the sleep (before the "real application" is actually running),
and I dont want that.

Can I somehow schedule the start of the application, either via a
command line tool or from code (c#) or in some other way?
Nov 28 '06 #4
On 28 Nov 2006 02:18:10 -0800, Marcus wrote:
I have this application I have made that I launch when the user logs
into Windows XP.
I would like to delay the launch of the application so that it starts 1
minute after the user has logged in.

I previously did this with a sleep at the first row of the source code,
but this makes the process visible in the task manager's processes tab
during the sleep (before the "real application" is actually running),
and I dont want that.

Can I somehow schedule the start of the application, either via a
command line tool or from code (c#) or in some other way?
Just write a small stub program that submits an 'AT' command during
startup.
You could even make it generic by having parameters for the pause and
executed application, and setting those in your Program Files/Startup entry
(or your registry Load setting)

I hope you're not asking this for some malicious purpose.

Cheers,
Gadget
Nov 28 '06 #5
This idea with AT command seems to be what I need. I have this big
problem though. I dont have mstask.exe on my win XP pro computer. I
have IE 6 installed also, but no mstask.exe. I dont know how to get
that one. I googled for it about an hour now...

Gadget skrev:
On 28 Nov 2006 02:18:10 -0800, Marcus wrote:
I have this application I have made that I launch when the user logs
into Windows XP.
I would like to delay the launch of the application so that it starts 1
minute after the user has logged in.

I previously did this with a sleep at the first row of the source code,
but this makes the process visible in the task manager's processes tab
during the sleep (before the "real application" is actually running),
and I dont want that.

Can I somehow schedule the start of the application, either via a
command line tool or from code (c#) or in some other way?

Just write a small stub program that submits an 'AT' command during
startup.
You could even make it generic by having parameters for the pause and
executed application, and setting those in your Program Files/Startup entry
(or your registry Load setting)

I hope you're not asking this for some malicious purpose.

Cheers,
Gadget
Nov 28 '06 #6
OK, I missed the /interactive parameter to the AT command.
Now it works (odd, because I cant seem to find mstask.exe anywere on my
drive).

And NO, it is not for some malicious purpose I want to do this. I am
using CPAU to run my application as administrator and somehow CPAU
freezes and doesnt launch my app if It tries to soon after logon (thats
why I want the delay), the app is a parental software that a limited
user should not be able to stop.
I really doesn't want this timing dependency, but I haven't come up
with any other way of doing it.

Thank you all for helping out.

Marcus skrev:
This idea with AT command seems to be what I need. I have this big
problem though. I dont have mstask.exe on my win XP pro computer. I
have IE 6 installed also, but no mstask.exe. I dont know how to get
that one. I googled for it about an hour now...

Gadget skrev:
On 28 Nov 2006 02:18:10 -0800, Marcus wrote:
I have this application I have made that I launch when the user logs
into Windows XP.
I would like to delay the launch of the application so that it starts 1
minute after the user has logged in.
>
I previously did this with a sleep at the first row of the source code,
but this makes the process visible in the task manager's processes tab
during the sleep (before the "real application" is actually running),
and I dont want that.
>
Can I somehow schedule the start of the application, either via a
command line tool or from code (c#) or in some other way?
Just write a small stub program that submits an 'AT' command during
startup.
You could even make it generic by having parameters for the pause and
executed application, and setting those in your Program Files/Startup entry
(or your registry Load setting)

I hope you're not asking this for some malicious purpose.

Cheers,
Gadget
Nov 29 '06 #7
batfile would contain

ping -n 61 127.0.0.1

before the line that starts the program in question, to effect a 60
second delay
Marcus wrote:
OK, I missed the /interactive parameter to the AT command.
Now it works (odd, because I cant seem to find mstask.exe anywere on my
drive).

And NO, it is not for some malicious purpose I want to do this. I am
using CPAU to run my application as administrator and somehow CPAU
freezes and doesnt launch my app if It tries to soon after logon (thats
why I want the delay), the app is a parental software that a limited
user should not be able to stop.
I really doesn't want this timing dependency, but I haven't come up
with any other way of doing it.

Thank you all for helping out.

Marcus skrev:

>>This idea with AT command seems to be what I need. I have this big
problem though. I dont have mstask.exe on my win XP pro computer. I
have IE 6 installed also, but no mstask.exe. I dont know how to get
that one. I googled for it about an hour now...

Gadget skrev:

>>>On 28 Nov 2006 02:18:10 -0800, Marcus wrote:
I have this application I have made that I launch when the user logs
into Windows XP.
I would like to delay the launch of the application so that it starts 1
minute after the user has logged in.

I previously did this with a sleep at the first row of the source code,
but this makes the process visible in the task manager's processes tab
during the sleep (before the "real application" is actually running),
and I dont want that.

Can I somehow schedule the start of the application, either via a
command line tool or from code (c#) or in some other way?

Just write a small stub program that submits an 'AT' command during
startup.
You could even make it generic by having parameters for the pause and
executed application, and setting those in your Program Files/Startup entry
(or your registry Load setting)

I hope you're not asking this for some malicious purpose.

Cheers,
Gadget

Dec 1 '06 #8
Marcus,

Is there a reason you can't disable access to the Task Manager for the
limited user??
(I'm assuming it's the kids!?)

That would enable you to run your delay in code, using sleep, and not have
the user able to kill it using Task Manager.
____________________________
The Grim Reaper

"Marcus" <ma************@koping.netwrote in message
news:11*********************@14g2000cws.googlegrou ps.com...
OK, I missed the /interactive parameter to the AT command.
Now it works (odd, because I cant seem to find mstask.exe anywere on my
drive).

And NO, it is not for some malicious purpose I want to do this. I am
using CPAU to run my application as administrator and somehow CPAU
freezes and doesnt launch my app if It tries to soon after logon (thats
why I want the delay), the app is a parental software that a limited
user should not be able to stop.
I really doesn't want this timing dependency, but I haven't come up
with any other way of doing it.

Thank you all for helping out.

Marcus skrev:
>This idea with AT command seems to be what I need. I have this big
problem though. I dont have mstask.exe on my win XP pro computer. I
have IE 6 installed also, but no mstask.exe. I dont know how to get
that one. I googled for it about an hour now...

Gadget skrev:
On 28 Nov 2006 02:18:10 -0800, Marcus wrote:

I have this application I have made that I launch when the user logs
into Windows XP.
I would like to delay the launch of the application so that it starts
1
minute after the user has logged in.

I previously did this with a sleep at the first row of the source
code,
but this makes the process visible in the task manager's processes
tab
during the sleep (before the "real application" is actually running),
and I dont want that.

Can I somehow schedule the start of the application, either via a
command line tool or from code (c#) or in some other way?

Just write a small stub program that submits an 'AT' command during
startup.
You could even make it generic by having parameters for the pause and
executed application, and setting those in your Program Files/Startup
entry
(or your registry Load setting)

I hope you're not asking this for some malicious purpose.

Cheers,
Gadget

Dec 1 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Aleksandre Skornitchenko | last post by:
Hello, All! How I can connect to non-Microsoft LDAP-server and select record from him ? With best regards, Aleksandre Skornitchenko. IT Dept., Togliatti Branch MegaFon E-mail:...
0
by: cyshao | last post by:
Hi, My Friends: I have a program and I want to let machine automaticly auto it by using Windows task schedule. Sure, I can manually Create/Modify task in Windows task schedule. But I also hope...
1
by: greg7224 | last post by:
I am currently working on a C# project that uses the Janus schedule controls, and am having trouble getting it to print correctly in Day view. The problem is that it will not print out the owners...
23
by: pamelafluente | last post by:
Hi guys! I want to do a large number of scheduled task (say 80). Each task can be run at a certain time every given weekday. For instance at 10am and 5pm on each monday, etc. I would like to...
1
by: sylsau | last post by:
Hello, I wrote a JAVA program which uses the JAVA API JDOM 1.0 (of this site www.jdom.org) I put the archive jdom.jar in the directory /usr/share/java/jdom.jar and I added this path in the...
5
by: jmsxp | last post by:
Hi all, I am in my infancy with programming, so please forgive stupid questions... I am attempting to write a C# program that will launch Trillian (well, that is just a part of the overall...
3
by: promiscuoustx | last post by:
I am trying to get my program to compile, but it will not complete. At line 79 it states, cannot convert 'float()()' to 'float' in assignment. Here is my code. #include <iostream> #include...
3
by: Marcus | last post by:
I have this application I have made that I launch when the user logs into Windows XP. I would like to delay the launch of the application so that it starts 1 minute after the user has logged in. ...
1
by: jobs | last post by:
I have a growning list of stored procedures that accept a single string as a parameter. The list and parameters are maintained in a table with two columns. Some of the Stored procedures take...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.