Tip

Use ALT-07 in Notepad to get to higher line numbers fast

Rather than using a sophisticated script editor and installing on every Win2k system that I may be on, I find using Notepad to be a very handy editor --and it is always there!

However, when the VBS/WSH scripts become lengthy and require additional editing due to syntax errors caused by the most recent modification, it is very cumbersome trying to count down to say line 95, or even line 35 can be tedious.

When you need to traverse quickly to those higher line numbers in scripts while using Notepad, try using "ALT-07" where the zero & seven is typed on the numeric keypad while holding down the ALT key. This provides a prompt where you may enter the line number to go to and will take your cursor focus to that line.

Editor's Note: We received several e-mails from searchWin2000 members in response to this tip. Thanks to Luc Vandenbroucke, Jim Long, Dominic Cotton, Patrick Quinn-Graham, Joe Sysman, Jonathan Weidner and Agis Grigoriadis for their comments. In summation, they say:

Regarding the Alt-07 Notepad tip: It is easier to use Ctrl-G to get to the same dialog box. It has the same effect with less key strokes.

SearchWin2000 Jordi Martinez adds:

If you use a Spanish version of Windows 2000, ALT-07 doesn't work. Try ALT-020 instead.


Requires Free Membership to View

This was first published in November 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.