cojms1 Posted August 21, 2007 Posted August 21, 2007 Hi, I have a script that is reading the remote registry of a server. Initially a ping check is carried out to test that the server is up. However, in some situations a ping may be blocked but the remote registry reads would still work. I have a server which is currently offline, when I attempt to read the registry the script hangs and does not appear to timeout. Is there any suggestions on how I can get round this? Is there some kind of timeout setting that I can apply to the RegRead function? Any help would be greatly appreciated.
Sunaj Posted August 21, 2007 Posted August 21, 2007 Hi cojms1,An idea would be to execute a subscript that contains the regread function from your mainscript. That way you can time the subscript (via a while loop if the script is to be run sequentially) and be sure that the main script doesn't quit functioning SunajHi,I have a script that is reading the remote registry of a server.Initially a ping check is carried out to test that the server is up. However, in some situations a ping may be blocked but the remote registry reads would still work.I have a server which is currently offline, when I attempt to read the registry the script hangs and does not appear to timeout.Is there any suggestions on how I can get round this?Is there some kind of timeout setting that I can apply to the RegRead function?Any help would be greatly appreciated. [list=1][*]Generic way to detect full path to default browser, List/ListView Events Using GuiRegisterMsg (detect doubleclick and much more)[*]Using dllcall for full control over fileopendialog, Make DirMove act somewhat normally (by circumventing it...)[*]Avoid problems with "&" (chr(38)) in code, Change desktop maximized area/workspace (fx to make deskbar type app)[*]Change focus behavior when buttons are clicked to work closer to 'standard windows' app[*](Context) Menus With Timed Tooltips, Fast Loops & Operators in AU3[*]Clipboard UDF, A clipboard change notification udf[/list]
cojms1 Posted August 22, 2007 Author Posted August 22, 2007 Hi cojms1,An idea would be to execute a subscript that contains the regread function from your mainscript. That way you can time the subscript (via a while loop if the script is to be run sequentially) and be sure that the main script doesn't quit functioning SunajThanks Sunaj. This is the route that I have started going down now. I'm using a temporary file to return error codes and results.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now