Home » Questions » Computers [ Ask a new question ]

How can I launch a file properties dialog from the command line?

How can I launch a file properties dialog from the command line?

It's simple programmatically with ShellExecute to specify the properties verb when instructing Windows to open a file, but can this be done from the command line or run box?

Asked by: Guest | Views: 449
Total answers/comments: 1
Guest [Entry]

"I've looked into this several times over the years, but never found a solution, but I have a workaround.

I would like to easily edit the EXIF data on image files from the commend line, so I use the following batch script to open Explorer with the file selected:

@echo off

:: OpenLocation.cmd - Opens file or directory location in Explorer

if [%1]==[] (
explorer /n, /select,""%CD%""
) ELSE (
explorer /n, /select,""%~f1""
)

:EOF

Then I type Alt+Enter to open the Properties dialogue box. You can use TAB and the arrow keys to navigate it, so you don't need to reach for the mouse."