Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quickly navigate/set default to a directory

Tips & Tricks

Quickly navigate/set default to a directory

by  baltman  Posted    (Edited  )
File menu -> tools -> intellisense manager -> custom

"Go There"
In replace Box: GT
In With Box: {GT}

Add button -> Script button -> paste:

Code:
LPARAMETER oFoxCode

oFoxCode.ValueType = 'V'

local cDIR
cDir = getdir()

if empty(cDir)
	return '*fail'
else
	cDir = ["]+cDir+["]
	set default to (cDIR)
	RUN /n explorer /e, &cDIR
endif

return "set default to " + cDir

"Open Explorer"
In replace Box: OE
In With Box: {OE}

Add button -> Script button -> paste:

Code:
LPARAMETER oFoxCode

oFoxCode.ValueType = 'V'

local cDIR
cDir = getdir()

if empty(cDir)
	return '*fail'
else
	cDir = ["]+cDir+["]
	RUN /n explorer /e, &cDIR
endif

return "*opened " + cDir

Hit 'OK' button.

Now in the command window you can type either "gt" or "oe" and navigate among directories with ease.

Enjoy



Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top