|
-
Apr 17th, 2013, 08:00 PM
#1
Re: Please explain why these are two 'No No !' commands.
The two loops look the same but have different purposes, I first check that 'Neutron' is running, and then that it's completed.
Me no understand why you need do that especially if you're the author of all the programs involved. Would it not be simpler to have the one that's closing launch the next one in the chain in its closing events?
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Apr 18th, 2013, 07:34 AM
#2
Re: Please explain why these are two 'No No !' commands.
 Originally Posted by dunfiddlin
Me no understand why you need do that especially if you're the author of all the programs involved. Would it not be simpler to have the one that's closing launch the next one in the chain in its closing events?
I have to admit that that hadn't occurred to me... But I'm not the author of Neutron... A very nice little utility for up-dating the on-board clock, and I think I'd still have the same problem when reporting 'File C:\Neutron\Neutron.exe not found'.
Also I'd still have to check that Neutron had opened and closed, I can't just check that it's not running because the check might well complete Before Neutron has started... And I'd still need to use 'DoEvents' to display the message to say that the PC's internal clock had been updated.
Neat suggestion, but I can't see it making much difference. I tried to get to grips with Multi-threading without success, I'm still trying to understand it, I'm using Nyia's explanation in the Code Bank but I've not figured out how to modify it for my own use Yet.
I took the suggestion, in another thread, to go back to square one and start to re-learn VB from scratch and I'm doing that; except of course, as this particular thread shows, everyday life get's in the way.
Poppa.
Along with the sunshine there has to be a little rain sometime.
-
Apr 18th, 2013, 07:55 AM
#3
Re: Please explain why these are two 'No No !' commands.
I don't know what version of Windows you are running, but if you have an internet connection you can have windows automatically set the time from a NTP server.
-
Apr 18th, 2013, 08:14 AM
#4
Re: Please explain why these are two 'No No !' commands.
 Originally Posted by dbasnett
I don't know what version of Windows you are running, but if you have an internet connection you can have windows automatically set the time from a NTP server.
I assume you're referring to the built-in MS option, and you're quite right of course and that's fine if you're logged on at the scheduled time, I got fed-up with my clock drifting off because I was either too early or too late, and even then I found it a bit unreliable.
This nice little utility takes a few seconds to do the job Every Time I boot-up my machine, no problems.
Oh, and if it's of any interest, my OS is Win.7 Pro. 64Bit.
Poppa.
Along with the sunshine there has to be a little rain sometime.
-
Apr 18th, 2013, 08:25 AM
#5
Re: Please explain why these are two 'No No !' commands.
You can change the interval that Windows Internet Time updates. Here is a link that shows you how
http://www.vistax64.com/tutorials/89...-interval.html
I think the default is once per day.
edit: Do not set this value to low or the time server may block all of your request.
Last edited by dbasnett; Apr 18th, 2013 at 08:46 AM.
-
Apr 18th, 2013, 09:07 AM
#6
Re: Please explain why these are two 'No No !' commands.
 Originally Posted by dbasnett
You can change the interval that Windows Internet Time updates. Here is a link that shows you how
http://www.vistax64.com/tutorials/89...-interval.html
I think the default is once per day.
edit: Do not set this value to low or the time server may block all of your request.
I was going to suggest that also.
FWIW, I have one my systems set to update every 2 hours (SpecialPollInterval = 7200 decimal) because the stupid thing gains 9 secs every hour and Windows default update is only once per week. It never got banned, although I never used Windows Time server, I changed it to one of the .gov servers.
-
Apr 18th, 2013, 09:13 AM
#7
Re: Please explain why these are two 'No No !' commands.
 Originally Posted by Edgemeal
I was going to suggest that also.
FWIW, I have one my systems set to update every 2 hours (SpecialPollInterval = 7200 decimal) because the stupid thing gains 9 secs every hour and Windows default update is only once per week. It never got banned, although I never used Windows Time server, I changed it to one of the .gov servers.
I have mine set for four hours and use tick.
-
Apr 18th, 2013, 09:49 AM
#8
Re: Please explain why these are two 'No No !' commands.
 Originally Posted by dbasnett
You can change the interval that Windows Internet Time updates. Here is a link that shows you how
http://www.vistax64.com/tutorials/89...-interval.html
I think the default is once per day.
edit: Do not set this value to low or the time server may block all of your request.
See what I mean ! What a phaff ! I just run Neutron every time I boot up... Simples !
Along with the sunshine there has to be a little rain sometime.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|