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? 4 1426
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.
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.
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.
"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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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 I´ve inserted a two radio...
|
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,...
|
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
|
by: Leo |
last post by:
Hi!
is it possible to deploy .net 2 application using OneClick Deployment
and add it to autostart?
|
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...
|
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.....
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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,...
|
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...
|
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...
|
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,...
| |