Re: Setting the time in Win7

2011-08-23 Thread Bob Greschke
On 2011-08-23 02:26:38 -0600, Tim Golden said: On 22/08/2011 20:42, Bob Greschke wrote: Several people have been hacking away on this computer we are testing on, so I'm not sure what settings -- other than all of them -- have been messed with, but popen("time ...") seems to work, but system("t

Re: Setting the time in Win7

2011-08-23 Thread Tim Golden
On 22/08/2011 20:42, Bob Greschke wrote: Several people have been hacking away on this computer we are testing on, so I'm not sure what settings -- other than all of them -- have been messed with, but popen("time ...") seems to work, but system("time ...") does not. I'm going to restore the machi

Re: Setting the time in Win7

2011-08-22 Thread Bob Greschke
Several people have been hacking away on this computer we are testing on, so I'm not sure what settings -- other than all of them -- have been messed with, but popen("time ...") seems to work, but system("time ...") does not. I'm going to restore the machine to its original state and see what

Re: Setting the time in Win7

2011-08-22 Thread Bob Greschke
Hi! Yup. I've been from one end of that article to the other with no luck. It must be something to do with the shell that the system() call creates not having permission to set the time, but I can't figure out how to get around it. Just using the GUI the account where the user is running th

Re: Setting the time in Win7

2011-08-22 Thread Tim Golden
If memory serves, you need to enable a specific privilege to set the time in Vista+. Just a moment... Have a look here: http://support.microsoft.com/kb/300022 and look for SeSystemtimePrivilege generally. Sorry; I'm a bit rushed at the moment. Feel free to post back if that isn't clear TJG