Click here to Skip to main content
12,697,340 members (26,584 online)
Click here to Skip to main content
Add your own
alternative version

Stats

22.8K views
33 downloads
6 bookmarked
Posted

The Poetry of Ruby - Jumping to an Outlook Folder from the DOS Console

, 17 Aug 2007 CPOL
Rate this:
Please Sign up or sign in to vote.
The poetry of Ruby - jumping to an Outlook folder from the DOS console.

Introduction

This article is offered to you as a short simple poem written in Ruby. It is by no means a masterpiece, but utility in the smallest of circumstances could cause a shift of balance in popular, everyday life.

The Purpose

Imagine you work with the Outlook program running on Windows. You might have a lot of folders in your personal store because you respect yourself as an organized and thorough professional? Perhaps you are so desperate sometimes to find these folders that you are even willing to open a command line "DOS" console if someone suggested it might help?

The Script

Running the following little Ruby program from the command line and passing at least a part of the folder name you would like to locate as an argument, should find the first folder with such a name. If so, it will ask Outlook to jump to the folder and display itself.

Sample image

# //////////////////////////////////////////////////////////////////////////////
# // file: pgog.rb
# // desc: pgog 'perfectly good outlook grep' - outlook folder scanning utility
# // auth: pieter greyling [-pg-] <a href="mailto:pieter@demonsource.com">pieter at demonsource dot com
</a>

The Result

Should be a hop to the first folder with the string "_of_ruby" in its name.

Sample image

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Pieter H. C. Greyling
Chief Technology Officer ChileServe
Chile Chile
No Biography provided

You may also be interested in...

Comments and Discussions

 
Questionhow can I identify that an email is added to a folder Pin
Einas3-Mar-08 5:26
memberEinas3-Mar-08 5:26 
GeneralExcellent Pin
jantzeno9-Aug-07 12:50
memberjantzeno9-Aug-07 12:50 
GeneralRe: Excellent Pin
Pieter Greyling - DemonSource10-Aug-07 10:10
memberPieter Greyling - DemonSource10-Aug-07 10:10 
GeneralIt would be nice ... Pin
Roland Pibinger2-Nov-06 0:08
memberRoland Pibinger2-Nov-06 0:08 
... if you explained the source code. 'The Poetry of Ruby' is not self-evident to people unfamiliar with Ruby (like me).
GeneralRe: It would be nice ... Pin
Pieter Greyling - DemonSource5-Nov-06 7:58
memberPieter Greyling - DemonSource5-Nov-06 7:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170118.1 | Last Updated 17 Aug 2007
Article Copyright 2006 by Pieter H. C. Greyling
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid