LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Lauch when start and shutdown Windows 10

Solved!
Go to solution

Hi everyone.

 

I'm trying to lauch an app when windows startup and shutdown.

 

Any ideas about how can i do it?

 

Ty.

0 Kudos
Message 1 of 9
(1,324 Views)
Solution
Accepted by topic author IvanMalonda

Hi Ivan,

 

have you tried to use the Windows task scheduler?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(1,319 Views)
Solution
Accepted by topic author IvanMalonda

Running a LabVIEW Executable When Windows Boots

-------------------------------------------------------
Applications Engineer | TME Systems
0 Kudos
Message 3 of 9
(1,274 Views)

As an aside question, how do you guarantee that the app you launch on Windows shutdown won't get closed by the OS as it is shutting down?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 9
(1,237 Views)

This is what I do.

 

First, my app launch when user log. (shortcut of .exe in Star Menu > Programs > Ini).

Then, i need to log when user disconnect/shutdown/restart, so, i use 'Application Instance Close' event to check that and do what i want.

0 Kudos
Message 5 of 9
(1,227 Views)

@IvanMalonda wrote:

This is what I do.

 

First, my app launch when user log. (shortcut of .exe in Star Menu > Programs > Ini).

Then, i need to log when user disconnect/shutdown/restart, so, i use 'Application Instance Close' event to check that and do what i want.


Oh, so what you really want is some background program that is constantly monitoring for the events described above, and that needs to start up when the user logs in.  That makes perfect sense.  Thanks.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 9
(1,206 Views)

😎👍

0 Kudos
Message 7 of 9
(1,140 Views)

Going a little deeper, I discover 2 forms to do this type of app.

 

My first idea was a background application that executes in hide and take login user and time, and when user disconnect,shutdown or restart do the same thing as login.

 

My second idea is do a windows service, with a little changes in my code and NSSM(the Non-Sucking Service Manager) to create a service, i can carry out this task better than other one.

0 Kudos
Message 8 of 9
(1,136 Views)

@IvanMalonda wrote:

Going a little deeper, I discover 2 forms to do this type of app.

 

My first idea was a background application that executes in hide and take login user and time, and when user disconnect,shutdown or restart do the same thing as login.

 

My second idea is do a windows service, with a little changes in my code and NSSM(the Non-Sucking Service Manager) to create a service, i can carry out this task better than other one.


I think making it a service is the better choice, but I would like some opinions besides my own.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 9 of 9
(1,128 Views)