The question may sound stupid but I 've been trying to do it for hours now.
The thing is that, I want a batch file to check for internet connction every 30 seconds and if there is no connection, I want it to check for it again.
If the connection is available, I want it to start a program let's say Notepad.exe.
I can also use powershell, but I am a bit unfamiliar with that but I would be glad if it colud do the job.