Charles Dye
Super Moderator
- May
- 5,108
- 135
Staff member
ASSOCIATE would be more useful if it could set verbs other than "Open". I suggest a syntax like:
The same could be done to FTYPE, but I see that command as being more for CMD.EXE compatibility.
ASSOCIATE /V:verb .ext=cmdstring
Only one /V: per command, and the verb defaults to "Open" if not specified. Setting multiple verbs would require multiple calls:
Code:
associate /f .btm="%_cmdspec" /c "%%1" %%*
associate /f /v:RunAs .btm="%_cmdspec" /c "%%1" %%*
associate /f /v:Debug .btm="%_cmdspec" /c bdebugger "%%1" "%%*"
associate /f /v:Edit .btm="%@path[%_cmdspec]tcedit.exe" "%%1"
associate /f /v:Print .btm="%@search[notepad.exe]" /p "%%1"
The same could be done to FTYPE, but I see that command as being more for CMD.EXE compatibility.