Sign in
Poor man's version of a blog by octavio licea
Poor man's version of a blog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
DirectoryEntry wmi printjob
Archive
Archives
March 2008
(2)
October 2007
(1)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Poor man's version of a blog by octavio licea
Search files in C# recursively
Posted
over 5 years ago
by
ocleon
3
Comments
I found this piece of code to search a for a file that containing a pattern (extension, part of the name) void DirSearch( string dir, string pattern) { try { foreach ( string d in Directory .GetDirectories(dir)) { foreach ( string...
Poor man's version of a blog by octavio licea
Get Print Jobs using WMI and ManagmentObjects
Posted
over 5 years ago
by
ocleon
1
Comments
I found a way to get the print jobs from the spoiler using Management objects and WMI public static void GetPrintJobs() { string searchQuery = "SELECT * FROM Win32_PrintJob" ; ManagementObjectSearcher searchPrintJobs = new ManagementObjectSearcher...
Page 1 of 1 (2 items)