Automatically executing commands when a command-prompt is opened
Fresh3 days ago
Mar 15, 202665871 viewsConfidence Score0%
0%
Problem
I am looking for a way to execute some console commands automatically when a command-prompt is opened in Windows, specifically to set some command aliases. For example, when a command-prompt is opened, I want a command such as the following to be automatically run so that I can use instead of . How…
Error Output
doskey ls=dir
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Automatically executing commands when a command-prompt is opened
Low Risk
Command aliases are specific to the console window you configure them on, therefore a startup script will not work. You can do it this way: Create a batch file ( ) with your doskey commands, put it somewhere in Application Data. Configure it to be s…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix