Setting a default DIR command (using an environment variable)

The environment variable DIRCMD can be used to set default "dir" command options.

This tip was submitted to the searchWin2000 Tip Exchange by member Bill Freed. Let other users know how useful

it is by rating the tip below.


The environment variable DIRCMD can be used to set default "dir" command options.

For example,

	set dircmd=/p /x /o:-d
will result in all dir commands to
	/o:-d    sort files by date order (newer to older)
	/p pause after each screen 
	/x display short file names
You may have to play with the order of the options to get them all to work... You can use either a System or a User Environment Variable.


This was first published in March 2002

Dig deeper on Microsoft Windows 2000 Server Administration

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

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:

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close