The Netbook is pretty slow which is why 'sleep' was added between the 'start' items, and because Peerblock always tries to check everything when it starts, its icon still opens several seconds after the connection is made.-pilgrim
That doesn't explain why it works from the CLI but not in the batch file. If it's fast enough to create the needed pipe in the CLI, it should be able to do it within a batch file.
There's some other weird and wonderful Windows magic at work.
If devcon's speed was an issue surely that would affect my existing batch file as well?
Nope, you're not relying on its output for anything, in fact you have no error checking on any of the commands in your batch script, so if, say, the devcon command failed to (dis|en)able the interface the batch file would happily continue.
I was intending to ask you today if it was ready for a wider audience yet?
If it hasn't formatted your drive yet or caused the sun to go supernova then I guess so.

You have mentioned before about getting away from its dependency on rasdial but as the most recent versions have proved reliable is there any particular reason for doing so?
I don't want to rely on the output from a CLI command that may or may not be executed or that may or may not throw an error when executed.
If you start it after a VPN connection and it can't run rasdial or rasdial throws an error then it won't show the tray icon, I don't particularly want to sit in a loop until I get a valid output.
It'd be a lot easier to get the information direct from the horses mouth, so to speak, the same place rasdial gets it from.
Plus I have a long term motive for wanting to hit the dll directly, I want to get all information direct from the Remote Access Service rather than wait for things to show up in the EventLog.
Log files: When I moved the latest update into the folder I am running it from I noticed that it is creating a separate log file for each day that it is run, they are I admit only 1kb each but is there any built in limit to their number?
Nope, just something I thought might be useful - I was going to have it put the data usage against each session but....
If not, once you decide you have gone as far as you can with the program and do not need possible debug information any more will there be an actual need for them?
Nope except purely as a statistical source if anyone wants them. Maybe I'll stop it creating them unless a certain magic word is enabled, (possibly /rumpelstiltskin or something).