Drstein99 Posted October 23, 2003 Posted October 23, 2003 Is there a way to restrict users from changing the system time on the p.c. through .net? I just want to SHOW the time in the lower-right hand corner of the screen. I want to restrict users from dbl-clicking or right clicking and adjusting the time. As my program will be taking time-sensitive statistics from the machine, and sync with the server time upon executing of the program. Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
AlexCode Posted October 23, 2003 Posted October 23, 2003 I understand your problem but I think it isn't a good solution... Since you have a server and you use it to sync whatever you are doing, set an internal timer and sync with the server clock! This way the user can mess around with the workstation clock that it won't affect you program!... :D Quote Software bugs are impossible to detect by anybody except the end user.
Drstein99 Posted October 23, 2003 Author Posted October 23, 2003 Sounds like a good idea. Right now I'm using a shell command to get the time from the server. Do you know any better way? Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
AlexCode Posted October 23, 2003 Posted October 23, 2003 When I work with a Server, mostly is because I've a database there... If I have a database there most likelly it's a SQL 2000 database. If you scenario is like this, or the server have SQL Server you can get it from there. Create a SP that retrieves the server time... If you don't have SQL Server installed and since you have to make available that time to the network (I supose) you can make a very simple WebService that retrieves the server time... What do u think ? :D Quote Software bugs are impossible to detect by anybody except the end user.
Drstein99 Posted October 23, 2003 Author Posted October 23, 2003 That's all way above my head. I'm using a windows 2000 server, with mySql. I dont know how to create an "SP" I dont know anything on how to create a webservice, nevertheless a simple webservice. My experience is only creating visual basic programs, database, and FoxPro. Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
AlexCode Posted October 23, 2003 Posted October 23, 2003 :D ok... An "SP" it's a StoredProcedure... The new version of mySQL will support that... About mySQL I don't know much but I believe it will retrieve the server date with this Transact statement: SELECT Now() Personally I would use a WebService... Sounds nicer! :D And it's a piece of cake to do... Try that mySQL statement, if you want I'll give you the WebService code... :p Quote Software bugs are impossible to detect by anybody except the end user.
Administrators PlausiblyDamp Posted October 24, 2003 Administrators Posted October 24, 2003 What is the desktop OS? Are the machines part of a Domain? IF so the ability to change the system time isn't granted to ordinary users anyway. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
AlexCode Posted October 24, 2003 Posted October 24, 2003 Good point... The most common thing is Developers don't understand nothing of Administration... :p Quote Software bugs are impossible to detect by anybody except the end user.
Drstein99 Posted October 24, 2003 Author Posted October 24, 2003 It's windows 98, running on NT 4.0 network. Any ideas? Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
bri189a Posted October 24, 2003 Posted October 24, 2003 They need to upgrade their network badly. I'd use the stored procedure mentioned/web service mentioned above. Nothing an administrator sets on a 98 machine via config.pol (policy file on NT 4.0 server) can't be over-ridden by a skilled user on 98. Quote
Drstein99 Posted October 24, 2003 Author Posted October 24, 2003 We don't hire skilled computer users to run the programs I create. Skilled computer users wouldn't apply for these positions either (I hope). Can we please stick to the main subject of this thread? I'm talking about programatically restricting users from altering computer system time. Upgrading the server, and hundreds of workstations is not an option. Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
AlexCode Posted October 25, 2003 Posted October 25, 2003 But sticking to the projrct.... did you tried any of the ideas I gave you? If not, do it.... because they're the easyer and most productive options. Quote Software bugs are impossible to detect by anybody except the end user.
Drstein99 Posted October 27, 2003 Author Posted October 27, 2003 See thats the thing, I dont have mySQL server setup yet. For the time being I'm using an access database. I have no way of testing the SQL now() statement. In addition, the NOW() would be executed when I insert or update a record. I need to know the NOW() time, to display timers on the screen to the user. So to get the NOW() time I would have to do a select after I did the intsert or update - which we know is a little counter productive. Quote www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.