File association using CMD -
what ways associate file cmd? example,i  want .txt file extension associate typical program, through command prompt? correct file association cmd command?
one needs use ftype , assoc commands follows (and note sequence matters):
ftype txtfile="c:\program files (x86)\pspad editor\pspad.exe" "%1" assoc .log=txtfile assoc .txt=txtfile assoc .wtx=txtfile or
ftype tifimage.document="c:\program files\mspview.exe" "%1" assoc .tif=tifimage.document assoc .tiff=tifimage.document note haven't mspview.exe installed can't approve ftype assignment rightness. in my windows ftype tifimage.document command output follows:
tifimage.document=%systemroot%\system32\rundll32.exe "%programfiles%\windows photo viewer\photoviewer.dll", imageview_fullscreen %1 
Comments
Post a Comment