Check if
Moderators: Dorian (MJT support), JRL
Kinda vague on a few things here..
1 and 2
What type of Internet connection do you have? Cable, DSL, etc.
Do you have a local Firewall or network FW to be concerned with?
Ok... so I might set up a a routine to ping 2 differing URLs and check their responses to identify Internet connectivity. You could also open your home page, but if it's cached you could have inconsistancy with your script.
Number 3
Is it a web-based app? Citrix/thin client?
1 and 2
What type of Internet connection do you have? Cable, DSL, etc.
Do you have a local Firewall or network FW to be concerned with?
Ok... so I might set up a a routine to ping 2 differing URLs and check their responses to identify Internet connectivity. You could also open your home page, but if it's cached you could have inconsistancy with your script.
Number 3
Is it a web-based app? Citrix/thin client?
Thanks for reply.
I am not sure about my connection.
It is broadband type using telephone line with external modem having details as:
Device Name : WAN Miniport
Device type : PPPoE
Server Type : PPP
Transports : TCP/IP
Authentication : MD5 CHAP.
I want to run application which is not web based such as CCleaner from CCleaner.com
Open application,click on "Run Cleaner" and then Exit.
I want to clean internet cookies on realtime basis , that's why I need check If internet connection is on.
Thanks
I am not sure about my connection.
It is broadband type using telephone line with external modem having details as:
Device Name : WAN Miniport
Device type : PPPoE
Server Type : PPP
Transports : TCP/IP
Authentication : MD5 CHAP.
I want to run application which is not web based such as CCleaner from CCleaner.com
Open application,click on "Run Cleaner" and then Exit.
I want to clean internet cookies on realtime basis , that's why I need check If internet connection is on.
Thanks
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
If you run RasDial it will tell you if you are not connected:
C:\>rasdial
No connections
Command completed successfully.
So you could do:
If you want to know how to connect/disconnect see:
http://www.mjtnet.com/forum/viewtopic.php?t=1582
C:\>rasdial
No connections
Command completed successfully.
So you could do:
Code: Select all
Let>RP_WAIT=1
Run>cmd.exe /c Rasdial >> %TEMP_DIR%\rasdial.txt
ReadFile>%TEMP_DIR%\rasdial.txt,ras
Position>No connections,ras,1,rp
If>rp>0
MessageModal>No Connection
Else
MessageModal>Connected
Endif
DeleteFile>%TEMP_DIR%\rasdial.txt
http://www.mjtnet.com/forum/viewtopic.php?t=1582
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Untested modification of sample from Marcus:
Code: Select all
Let>RP_WAIT=1
Run>cmd.exe /c Rasdial >> %TEMP_DIR%\rasdial.txt
ReadFile>%TEMP_DIR%\rasdial.txt,ras
Position>No connections,ras,1,rp
If>rp<=0
Run Program>xyz.exe
Endif
DeleteFile>%TEMP_DIR%\rasdial.txt
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
-
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
I may be mistaken but I don't think CC Cleaner operates on a realtime basis as you are suggesting. I think it is something you would run after an internet session to delete cookies and temp files, it doesn't sit there like a watchdog stopping those files being written. If you want realtime cookie prevention then why not set the browser not to accept them?
I am thinking that you can do everything you want to do with Macro Scheduler and will not require CC Cleaner.
If you look in the discussions and in the 'tips' and 'scripts' area you can put together a script that will automate and remove anything you'd like. The real-time throws me off a bit though. I guess you could run your cleaner app with MS in a loop/with a wait, or something to that effect.
At this point, I'd have to agree with Me_Again.
Ed
If you look in the discussions and in the 'tips' and 'scripts' area you can put together a script that will automate and remove anything you'd like. The real-time throws me off a bit though. I guess you could run your cleaner app with MS in a loop/with a wait, or something to that effect.
At this point, I'd have to agree with Me_Again.
Ed
dvd,
You've been provided with the If.. then.. did you happen to test the scripts above from Support and Bob Hansen? I think you've stated that it did not work. Pleaase post your version of the script.
Also, Me_again's suggestion resolves your issue entirely (i think). Are you not sure how to prevent cookies? If so, what browser are you using?
You've been provided with the If.. then.. did you happen to test the scripts above from Support and Bob Hansen? I think you've stated that it did not work. Pleaase post your version of the script.
Also, Me_again's suggestion resolves your issue entirely (i think). Are you not sure how to prevent cookies? If so, what browser are you using?
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Me_again, you may be correct with your interpretation. It would definitely make a difference.
In any case, Ed's suggestion to just eliminate cookies is really the best answer.
And a sample of the script that is not working, maybe with a list of programs that are running, can certainly help us out.
In any case, Ed's suggestion to just eliminate cookies is really the best answer.
And a sample of the script that is not working, maybe with a list of programs that are running, can certainly help us out.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!