Bink.nu Services

Subscribe to our feed 
Alerts 
 


Order Now!

Windows 7 for XP Professionals
Updating Support Skills from XP to Windows 7
by Bink.nu's Raymond Comvalius

Who is online

There are 47 guest(s) online.

There are 0 member(s) online.

Sponsors



Posted by Steven Bink October 16, 2006 9:37 AM with 4 comment(s)
Filed under:

Like most people, I use notepad when I need to put together a script. I never actually looked at the help file for notepad (well, why would you?!?) until I hit the F1 key by accident recently. As a result I found quite a few tricks that notepad provides that I never knew existed. They are turning out to be pretty helpful so I thought I'd share them below:

  • When editing a file, press the F5 key to insert the system date and time
  • Change or add headers & footers by selecting file | page setup
  • Press ctrl-G and enter a line number to go to (VERY useful when debugging VBScript errors)
  • Select view | status bar to display the line/character number as you navigate the file (another beneficial debugging aid)

Another tip I found was the ability to maintain a log file with timestamps. This is useful when troubleshooting a problem where you need to record what is happening at specific times:

  • open notepad
  • set the first line to be (without the quotes and in uppercase) ".LOG"
  • press enter and save/close the file
  • every time you open the file, notepad will automatically insert the system date/time at the end of the file and add a new line where you can begin typing
15420 Views

Comments

 

ultrafez said:

Ctrl-G doesn't work... nothing happens at all[:(]

and for some reason Status Bar is greyed out on the View menu... any ideas why?

Running Windows XP Home SP2
October 16, 2006 5:12 PM
 

RanMay said:

Same here, I am depressed a bit, darn it! [:(]
October 16, 2006 6:50 PM
 

Ismawell said:

Notepad is so strange ![:)] If you have sleected Wrap text in Format menu the Status bar is unabled and greyed in View Menu.

You can have both Wrap Text and Status bar by editing Registry for Notepad [:D]: HKEY_CURRENT_USER\Software\Microsoft\Notepad

Set DWORD StatusBar value to 1 and DWORD fWrap Value to 1

You can also write Strike text and underline text in Notepad with lfStrikeOut and lfUnderline  [:P]

For more information visit : http://www.laboratoire-microsoft.org/t/19809/

And http://www.laboratoire-microsoft.org/easter/19869/

October 16, 2006 11:22 PM
 

vmvadivel said:

Yep I realized it only in April 2006 :) I logged abt it here http://vadivel.blogspot.com/2006/04/using-notepad-as-your-virtual-diary.html

Best Regards
Vadivel   

October 19, 2006 4:40 AM

About Steven Bink

Founder of Bink.nu
Bink.nu 3.0. Copyright © 1999-2010 Steven Bink. All Rights Reserved.
Microsoft and Microsoft logo's are trademarks of Microsoft Corporation.