473,229 Members | 1,802 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,229 software developers and data experts.

Detect if autostart

Joh
I've developed an application that is launched at system startup. Is
there a way to detect when an application is started by autostart and
when its launched by a user?

Mar 6 '07 #1
4 1421
On Mar 6, 10:53 am, "Joh" <meanmachine...@hotmail.comwrote:
I've developed an application that is launched at system startup. Is
there a way to detect when an application is started by autostart and
when its launched by a user?
Best way I have figured out to do that is to specify a command line
switch in the auto startup shortcut. If present, the app knows it was
run from that shortcut.

Mar 6 '07 #2
Joh
On 6 Mar, 17:31, z...@construction-imaging.com wrote:
On Mar 6, 10:53 am, "Joh" <meanmachine...@hotmail.comwrote:
I've developed an application that is launched at system startup. Is
there a way to detect when an application is started by autostart and
when its launched by a user?

Best way I have figured out to do that is to specify a command line
switch in the auto startup shortcut. If present, the app knows it was
run from that shortcut.
Thanks for the reply! Currently I'm using registry settings for the
autostart, no a short cut in the auto start-up folder, so it doesn't
work. Anyone else know of another way to solve this? Otherwize I guess
I have to go for the shortcut.

Mar 6 '07 #3
Well specify a command line switch in the registry setting then.
"Joh" <me************@hotmail.comwrote in message
news:11**********************@c51g2000cwc.googlegr oups.com...
On 6 Mar, 17:31, z...@construction-imaging.com wrote:
>On Mar 6, 10:53 am, "Joh" <meanmachine...@hotmail.comwrote:
I've developed an application that is launched at system startup. Is
there a way to detect when an application is started by autostart and
when its launched by a user?

Best way I have figured out to do that is to specify a command line
switch in the auto startup shortcut. If present, the app knows it was
run from that shortcut.

Thanks for the reply! Currently I'm using registry settings for the
autostart, no a short cut in the auto start-up folder, so it doesn't
work. Anyone else know of another way to solve this? Otherwize I guess
I have to go for the shortcut.
Mar 7 '07 #4

"Joh" <me************@hotmail.comwrote in message
news:11**********************@c51g2000cwc.googlegr oups.com...
On 6 Mar, 17:31, z...@construction-imaging.com wrote:
>On Mar 6, 10:53 am, "Joh" <meanmachine...@hotmail.comwrote:
I've developed an application that is launched at system startup. Is
there a way to detect when an application is started by autostart and
when its launched by a user?

Best way I have figured out to do that is to specify a command line
switch in the auto startup shortcut. If present, the app knows it was
run from that shortcut.

Thanks for the reply! Currently I'm using registry settings for the
autostart, no a short cut in the auto start-up folder, so it doesn't
work. Anyone else know of another way to solve this? Otherwize I guess
I have to go for the shortcut.
Put the switch in the registry setting rather than a shortcut?
Either way, you're still pointing to MyApp.exe /autorun

Mar 7 '07 #5

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

Similar topics

23
by: Michel Bany | last post by:
I am trying to parse responseXML from an HTTP request. var doc = request.responseXML; var elements = doc.getElementsByTagName("*"); the last statement returns an empty collection when running from...
1
by: timtos | last post by:
How can I tell a setup project to put a file to the startup folder of a user only when he selected this option. To give the user the possibility to select this option Ive inserted a two radio...
4
by: Dica | last post by:
based on a previous thread, i've been advised that using the system registry isn't always the best way to store user config details (due to portability issues). from my understanding, however,...
6
by: hb | last post by:
Hi, Would you please tell me how to detect if the client's browser is closed? I need such event to trigger a database modification. Thank you hb
0
by: Leo | last post by:
Hi! is it possible to deploy .net 2 application using OneClick Deployment and add it to autostart?
2
by: Ultrak The DBA | last post by:
Using the following query: select substr(reg_var_name,1,24) as reg_var_name, substr(reg_var_value, 1,12) as reg_var_value, level from table(sysproc.reg_list_variables()) as registryinfo; I am...
2
by: JayaseelanVaiyapuri | last post by:
Hi, Anybody please tell how to create a project with autostart future.. If i install the .CAB file in my device the application should automatically start after completing the installation.....
4
by: goscottie | last post by:
I used submodal as my popup window. With some tweaks, it working great in my app. However, I can't find a way to detect session timeout in the popup window. The app is a form based...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.