Hacker News new | ask | show | jobs
by Someone 3666 days ago
"I have to dump batch files into a folder in PATH because there's no alias support nor .profile startup script."

https://msdn.microsoft.com/en-us/library/windows/desktop/ms6...:

"Console aliases are used to map source strings to target strings. For example, you can define a console alias that maps "test" to "cd \a_very_long_path\test". When you type "test" at the command line, the console subsystem expands the alias and executes the specified cd command. To define a console alias, use Doskey.exe to create a macro, or use the AddConsoleAlias function."

https://www.microsoft.com/resources/documentation/windows/xp...:

"Executing registry subkeys

If you do not specify /d in string, Cmd.exe looks for the following registry subkeys: HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun\REG_SZ HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun REG_EXPAND_SZ If either one or both registry subkeys are present, they are executed before all other variables."

"There's no shell escaping backticks."

https://technet.microsoft.com/en-us/library/bb490909.aspx:

"Iterating and file parsing Use file parsing to process command output, strings and file content. […] for /F ["ParsingKeywords"] {%% | %}variable in ('command') do command [CommandLineOptions]"

Good UI? I've seen better. It also doesn't affect the conclusion that the cmd shell is bad, but the functionality does exist in some, often weirdly limited, form.