Solved

vb script to display logon home page only when it has been updated

Posted on 2006-11-24
3
208 Views
Last Modified: 2010-04-16
Hi,
We have a request from HR to display a web pag at logon, but, only if the page has been updated since the user last viewed it. Any ideas?
0
Comment
Question by:andiharper
3 Comments
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 250 total points
ID: 18013285
andiharper,

Do you have the last login date in a database?  If so, then do you need the script to find the date the page was last modified and compare the two or how will you get the last modified date?  If the script needs to do it then you can use the File System Object.  For example ...

Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile("c:\path\to\filename.txt")
If DateDiff("d", DateFromDB, objFile.DateLastModified) > 0 then
  ' display the page
End if

That is just an example of what you can use.  Let me know if you have any questions or need more information.

b0lsc0tt
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Order table with macro 3 75
Sql how to exclude from a table 3 73
pairs challenge 5 44
wordcount challenge 11 76
This article will show, step by step, how to integrate R code into a R Sweave document
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now