Create LS alias for DIR command - Windows
Log In or Register to download the BES file, and more.

0 Votes

Description

<enter a description of the problem and the corrective action here>

Property Details

ID24046
StatusAlpha - Code that was just developed
TitleCreate LS alias for DIR command - Windows
DomainBESC
SourceInternal
Source Release Date4/18/2017 12:00:00 AM
Added by on 4/18/2017 1:51:20 PM
Last Modified by on 4/18/2017 1:51:20 PM
Counters 213 Views / 10 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

isWindows (Relevance 1172)
Used in 1022 fixlets and 515 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Used in 1 fixlet   * Results in a true/false
Show indented relevance
not exists lines whose(it contains "@dir %25*") of files "ls.bat" of windows folders

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
// http://stackoverflow.com/questions/9362692/how-to-create-ls-in-windows-command-prompt
// http://stackoverflow.com/questions/20530996/aliases-in-windows-command-prompt

delete __createfile

createfile until END_OF_FILE
@dir %*
@echo off

REM added with bigfix
REM this is to allow `LS` to be used as an alias for `DIR`
END_OF_FILE

delete {pathname of windows folders}\ls.bat
copy __createfile {pathname of windows folders}\ls.bat
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
jgstew -
This is supposed to be linked to this one: https://bigfix.me/fixlet/details/20414