Perhaps this can't be done, but maybe some sharp Xbasic guru has an answer.
On a network I want one and only one particular user to be in Alpha Five, all others out. The obvious reason is that certain indexes can be updated automatically, overnight, by the one user's computer being the only one open (because a script_schedule command will execute at a certain time), plus other events will take place. There are three tricky aspects to this.
First, I want the one open user to be at the Main Menu, regardless of where he was when he left the office. The reason: I don't want him to have any data files open. How do I return him to the Main Menu from wherever he might have been, some screen, some menu, whatever? I don't want to close him out of Alpha, just to be sure the data files are all closed, implying the closing of any form or browse which would have data files open.
Second, the script_schedule command, if you've ever used it, is great for scheduling the first running of a script, but I don't know of a way to continue to keep it running every day. Maybe using the script invoked by script_schedule to run that very script will in fact invoke it for the next day. Not sure. Maybe you know. The reason is that the one computer I wish to be open to the Main Menu each night may not be exited and restarted, i.e., a new session of Alpha may not be started. Since I am using the autoexec.scp to set the script_schedule events, I need to be sure it will trigger every night.
Third, since I depend on this one computer to be open to Alpha, logged in as a specific user, then if Alpha happened to be closed at the end of the business day and not open to run the script_schedule events, is there a way to 1) detect that Alpha is not open on this computer via a Windows scheduled event 2) if not open, open Alpha using the specific user's login to arrive at the Main Menu. Obviously, I need to know that Alpha is not open first since I don't want to try opening another session of Alpha.
Thank you if you're familiar with these nuances.
Jeff Fried
On a network I want one and only one particular user to be in Alpha Five, all others out. The obvious reason is that certain indexes can be updated automatically, overnight, by the one user's computer being the only one open (because a script_schedule command will execute at a certain time), plus other events will take place. There are three tricky aspects to this.
First, I want the one open user to be at the Main Menu, regardless of where he was when he left the office. The reason: I don't want him to have any data files open. How do I return him to the Main Menu from wherever he might have been, some screen, some menu, whatever? I don't want to close him out of Alpha, just to be sure the data files are all closed, implying the closing of any form or browse which would have data files open.
Second, the script_schedule command, if you've ever used it, is great for scheduling the first running of a script, but I don't know of a way to continue to keep it running every day. Maybe using the script invoked by script_schedule to run that very script will in fact invoke it for the next day. Not sure. Maybe you know. The reason is that the one computer I wish to be open to the Main Menu each night may not be exited and restarted, i.e., a new session of Alpha may not be started. Since I am using the autoexec.scp to set the script_schedule events, I need to be sure it will trigger every night.
Third, since I depend on this one computer to be open to Alpha, logged in as a specific user, then if Alpha happened to be closed at the end of the business day and not open to run the script_schedule events, is there a way to 1) detect that Alpha is not open on this computer via a Windows scheduled event 2) if not open, open Alpha using the specific user's login to arrive at the Main Menu. Obviously, I need to know that Alpha is not open first since I don't want to try opening another session of Alpha.
Thank you if you're familiar with these nuances.
Jeff Fried
Comment