14 พฤษภาคม 2555 19:54
I would like to run a .vbs file automatically when an html page is loaded. I am running this page off of a non Web Server so I am limited as far as functionality is concerned. We need to create a web counter or log whenever this site is hit in our internal environment. We counter cannot be done without a web server. So I figure I can have a VBS file run to log hits to a csv file whenever it runs. I need that .vbs file to run whenever someone tries to access the page. Is there any way to auto run the .vbs file once the page is accessed and loaded? Example
- Page is loaded
- VBS file is triggered and logs visitor info to a csv file.
16 พฤษภาคม 2555 14:28
you could run vbs file code from inside the html file but if you use createobject in vbs file code need to alow the html document to unsigned activex control permissions to execute code.
Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda. Blog - http://jefferycarlsonblog.blogspot.com/
- ทำเครื่องหมายเป็นคำตอบโดย Allen Li - MSFTModerator 22 พฤษภาคม 2555 2:24