i keep my doskey
macros in a separate file with .macro
file extension, and can load them using doskey /macrofile=macros.macro
for the specific console session
i want to use windows os feature of file type association to load them without having to type the command (the executable's name or path) every time
for that reason i use two built-in cmd.exe
commands:
assoc .macro=macro
ftype macro="doskey /macrofile=%1"
there's no error, but when i execute the file pop-up message appears, and basically it doesn't work
previously i tried to associate .reg
files with reg import %1
and it worked, the problem here seems to be the equals sign in doskey
's /macrofile=
switch, i think the system can't handle it
i think, despite switches (/
) and subcommands after the executable name can work with parameters, but =
somehow fails to do so
so i'm asking for solutions :)