assoc-ftype 在 Windows 10 上无法正常工作

Foa*_*oad 5 windows inkscape svg command-line file-association

我正在尝试将.svg要打开的文件与 Inkscape 的inkview.exe. 无法通过常规方法执行此操作,我正在尝试使用命令行。我做了什么:

  1. assoc .svg=assoc .svgz=

  2. ftype svgfile=ftype avgzfile=

  3. assoc .svg=svgfileassoc .svgz=svgzfile

  4. 现在,当我运行assoc .svgassoc .svgz我得到的.svg=svgfile.svgz=svgzfile分别

  5. 我跑了ftype svgfile="path\to\inkview.exe" %1和一样svgzfile
  6. 现在当我跑步时ftype svgfile我得到svgfile="path\to\inkview.exe" %1
  7. 但是当我检查文件资源管理器时,我看到文件与 Internet Explorer 相关联!!!

如果您能帮助我了解问题所在以及如何解决,我将不胜感激?

小智 -2

尝试也用引号标记 %1 ->ftype svgfile="path\to\inkview.exe" "%1" 刚刚遇到了同样的问题,这解决了它..