Click here to Skip to main content
16,006,006 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to prevent remote log off Pin
SledgeHammer0121-Dec-11 11:55
SledgeHammer0121-Dec-11 11:55 
AnswerRe: How to prevent remote log off Pin
fjdiewornncalwe21-Dec-11 9:04
professionalfjdiewornncalwe21-Dec-11 9:04 
GeneralRe: How to prevent remote log off Pin
turbosupramk321-Dec-11 9:08
turbosupramk321-Dec-11 9:08 
GeneralRe: How to prevent remote log off Pin
fjdiewornncalwe21-Dec-11 9:48
professionalfjdiewornncalwe21-Dec-11 9:48 
GeneralRe: How to prevent remote log off Pin
turbosupramk321-Dec-11 10:01
turbosupramk321-Dec-11 10:01 
AnswerRe: How to prevent remote log off Pin
Dave Kreskowiak21-Dec-11 10:22
mveDave Kreskowiak21-Dec-11 10:22 
GeneralRe: How to prevent remote log off Pin
turbosupramk321-Dec-11 10:45
turbosupramk321-Dec-11 10:45 
AnswerRe: How to prevent remote log off Pin
jschell22-Dec-11 8:15
jschell22-Dec-11 8:15 
Restating the problem since I got confused.

You have an APP - call it A.
You want to run A on box Z and it takes a while. So while it is running you are not paying attention to Z.

Then another user comes along and logs into Z, which terminates your user session and terminates A.

So possible solutions.
1. Pretty sure another log in will already tell you that someone else is there. So you want an additional message to pop. And I am pretty sure that to have that pop during log in is going to require some very specific internal windows code. Not just a random app. And in terms of complexity and intrusiveness (including security) it is much higher than a windows service.
2. Create a windows service to run it - specific to the App.
3. Use the windows scheduler to run it.
4. Create a generic windows service, basically like 3, that allows you to run a task (like scheduler). More code than 2/3, but less complex to use.
5. Send an email telling people not to log in to the box.

For items 2/3/4 there is complexity in dealing with user input. For console IO you can use IO redirects. Either via cmd or via Process class. For a GUI it is certain to be more complicated since I would suspect you would need to intercept everything. Certainly something is possible since "Remote Desktop Connection" works.


turbosupramk3 wrote:
I'm in a large organization,


Why not just have a virtual box and it is 'yours' so no one just randomly logs in?
QuestionXML from URL Causes Internal Server Error (500) Pin
Enochs21-Dec-11 5:41
Enochs21-Dec-11 5:41 
AnswerRe: XML from URL Causes Internal Server Error (500) Pin
fjdiewornncalwe21-Dec-11 7:10
professionalfjdiewornncalwe21-Dec-11 7:10 
GeneralRe: XML from URL Causes Internal Server Error (500) Pin
Enochs21-Dec-11 9:02
Enochs21-Dec-11 9:02 
GeneralRe: XML from URL Causes Internal Server Error (500) Pin
fjdiewornncalwe21-Dec-11 9:08
professionalfjdiewornncalwe21-Dec-11 9:08 
GeneralRe: XML from URL Causes Internal Server Error (500) Pin
Enochs21-Dec-11 12:07
Enochs21-Dec-11 12:07 
AnswerRe: XML from URL Causes Internal Server Error (500) Pin
jschell22-Dec-11 8:20
jschell22-Dec-11 8:20 
QuestionIssues of Making MS-Access Schema Pin
Rajesh Singh00721-Dec-11 3:19
Rajesh Singh00721-Dec-11 3:19 
AnswerRe: Issues of Making MS-Access Schema Pin
Luc Pattyn21-Dec-11 3:47
sitebuilderLuc Pattyn21-Dec-11 3:47 
GeneralRe: Issues of Making MS-Access Schema Pin
Rajesh Singh00721-Dec-11 4:06
Rajesh Singh00721-Dec-11 4:06 
AnswerRe: Issues of Making MS-Access Schema Pin
Luc Pattyn21-Dec-11 4:21
sitebuilderLuc Pattyn21-Dec-11 4:21 
AnswerRe: Issues of Making MS-Access Schema Pin
riced21-Dec-11 11:31
riced21-Dec-11 11:31 
AnswerRe: Issues of Making MS-Access Schema Pin
SilimSayo22-Dec-11 13:09
SilimSayo22-Dec-11 13:09 
QuestionWrong Target set in Desktop shortcut Pin
iamdking21-Dec-11 0:57
iamdking21-Dec-11 0:57 
AnswerRe: Wrong Target set in Desktop shortcut Pin
Richard MacCutchan21-Dec-11 3:06
mveRichard MacCutchan21-Dec-11 3:06 
GeneralRe: Wrong Target set in Desktop shortcut Pin
iamdking21-Dec-11 19:24
iamdking21-Dec-11 19:24 
GeneralRe: Wrong Target set in Desktop shortcut Pin
Richard MacCutchan21-Dec-11 21:56
mveRichard MacCutchan21-Dec-11 21:56 
GeneralRe: Wrong Target set in Desktop shortcut Pin
iamdking21-Dec-11 23:56
iamdking21-Dec-11 23:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.