I want to open a folder and automatically select a file from the command line:
>> explorer C:\Windows\system32\selected_file.txt
Once Windows Explorer has opened C:\Windows\system32
I want selected_file.txt
to be highlighted automatically. Is that possible with Windows Command Prompt?
Different shortcuts allow you to select text a character, a word, a line, or even a whole screen at a time. Ctrl+A: Selects all text on the current line. Press Ctrl+A again to select all text in the CMD buffer. Shift+Left Arrow/Right Arrow: Extend current selection by one character to the left or right.
explorer.exe /select,c:\windows\system32\selected_file.txt
See https://support.microsoft.com/en-us/kb/130510
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With