Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Internet connection test revival
Message
From
08/02/2011 14:41:10
 
 
General information
Forum:
Windows
Category:
API
Miscellaneous
Thread ID:
01498390
Message ID:
01499263
Views:
49
>>>>>Hi,
>>>>>I *did* get time to try the code. Apart from having to fall back to the VFP8 version of ALINES() (which has no inbuilt option to drop empty lines) it works great. The only problem I see now is that in order to check whether a user has Internet access we first need to check whether they have access to windows scripting and local file write permissions :-{
>>>>>
>>>>
>>>>(1) Alines - try the 4 possibilities - see what the output is - adapt the code - sorry I did not see that - I went straight from vfp6 to vfp9
>>>
>>>I botched up some working code (used a temp array and discarded empty lines)
>>>
>>>>(2) local file write permissions
>>>>I use sys(2023), ie the tmp file locatiion - that should be Ok
>>>
>>>I need to check but I think that, IAC, the app depends on read/write permissions for that folder so it may not be a problem.
>>>
>>>>(3) Windows scripting
>>>>I have not had any installation that had that disabled - I use vbRegEx a lot of times
>>>
>>>I know there are some corporate clients who disable that on workstations. I'm going to ask the support guys who will probably have a better idea of the likelihood ......
>>>
>>>>Maybe (a) run /N7 ping www.etc.com >theTempFile
>>>>or (b) start the command with windows api - there's a sample somewhere in the download - I'll see if I can find it
>>>
>>>>update : download#33581 or download#9477 - have not tried either of them
>>>
>>>Thx, I'll take a look....
>>>
>>>>>I thought the 'More Effective C#' book was great. I initially just skimmed it from cover to cover and have only *really* read the first couple of sections (on Generics and Multithreading). Plenty of meat and interesting insights. I'll definitely queue up the sequel for when I've finished this one......
>>>>>
>>>>
>>>>It's interesting stuff to read - even for the more advanced
>>>>The 'sequel' is the book before the one you're reading
>>>
>>>I think (well, I know) I'm a bit confused on this.
>>>On the back of 'More Effective C#' it states that it covers C# 3.0 / .NET 3.5 (and there is certainly nothing there that is C#4) whereas, here:
>>>http://www.amazon.co.uk/Effective-covers-4-0-Specific-Development/dp/0321658701/ref=sr_1_1?s=books&ie=UTF8&qid=1297190540&sr=1-1
>>>it says that 'Effective C#' "includes C#4.0"
>>>
>>>Doesn't matter ; I'm going to get it anyway......
>>>
>>>UPDATE: I see the original 'Effective C#' was released in 2005 - there's a second edition released in 2010.....
>>
>>
>>Yes, the recipe of the book is the same - 50 tips. And I see things like optional and named parameters, PLinq - so it must be C#4
>>You can browse the table of contents online - items 1 to 50
>>
>>You could have bought them together Price For Both: £37.98
>
>I got them separately for £32.75 :-}

haha


ps: if your vfp is too rusty I'm willing to change the code to address the Windows scripting and the alines in the next few days - just shout
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform