Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Printer Usage Statistics

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,58935
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Printer Usage Statistics
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Printer Usage Statistics - 4/9/2008 1:09:03 AM   
  TomRiddle


Posts: 90
Score: 0
Joined: 2/7/2008
Status: offline
This script is designed to be placed on an IIS web server so that the stats can be made available to_
selected users on your Intranet. But it works just as well from XP's built in IIS.

1. Create directory in the root of your web server called "pc" (lower case)
2. Create another directory within /pc called "template"


3. Save the following code into a file called "1.asp" and place in "pc" directory

      

4. Save the following code into a file called "2.asp" and place in "pc" directory

      

5. Save the following code into a file called "3.asp" and place in "pc" directory

      

6. Save the following code into a file called "4.asp" and place in "pc" directory

      

7. Save the following code into a file called "5.asp" and place in "pc" directory

      

8. Save the following code into a file called "6.asp" and place in "pc" directory

      

9. Save the following code into a file called "default.asp" and place in "pc" directory

      

10. Save the following code into a file called "footer.inc" and place in "pc/template" directory

      

11. Save the following code into a file called "header.inc" and place in "pc/template" directory

      

12. Save the following code into a file called "sup.css" and place in "pc" directory

      




13. Save the following code into a file called "PrinterCounts.vbs" and place in "pc" directory

      


13. PrinterCounts.vbs needs to be run from a scheduled task (early in the morning each day) to populate the database.
I have a database with ~100,000 entries (print jobs recorded in the last 28days) While it took several hours to_
completely build the database initially, it only takes milliseconds to retrieve the stats. (amazing performance)





Thumbnail Image


Attachment (1)

< Message edited by TomRiddle -- 4/11/2008 10:05:16 PM >
 
 
Revisions: 1 | Post #: 1
 
 RE: Printer Usage Statistics - 4/9/2008 8:31:15 AM   
  dm_4ever


Posts: 1939
Score: 30
Joined: 6/29/2006
From: Orange County, California
Status: offline
It looks like you put a lot of work into this so thanks for sharing.

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to TomRiddle)
 
 
Post #: 2
 
 RE: Printer Usage Statistics - 4/9/2008 9:30:52 AM   
  TomRiddle


Posts: 90
Score: 0
Joined: 2/7/2008
Status: offline
Na, I just knocked it up over the weekend. LOL

The only hard bit is the database queries.
These are like black magic used by SQL gurus, but I have discovered a really easy technique that anyone can use to build them.

Here is a link to the tutorial http://visualbasicscript.com/m_59038/mpage_1/key_/tm.htm#59038

< Message edited by TomRiddle -- 4/11/2008 1:47:29 PM >

(in reply to dm_4ever)
 
 
Revisions: 1 | Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Printer Usage Statistics Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts