Brian Borg 在 technet 上的回答解释了如何将批处理文件固定到 Windows 7 中的任务栏。我能够在 Windows 7 中做到这一点,并且运行良好。
但我无法让它在 Windows 8 中工作。该解释没有明确添加批处理文件的路径和文件名的语法。自从我在 Windows 7 中做这件事已经好几年了,所以我可能没有正确完成这部分,但我已经尝试了我能想到的所有组合。
以下是我尝试过的一些示例:
"C:\Windows\System32\cmd.exe" "/C" C:\Users\[username]\winbats\dogbones.bat
"C:\Windows\System32\cmd.exe" "/C" "C:\Users\[username]\winbats\dogbones.bat"
"C:\Windows\System32\cmd.exe" /C C:\Users\[username]\winbats\dogbones.bat
C:\Windows\System32\cmd.exe /C C:\Users\[username]\winbats\dogbones.bat
C:\Windows\System32\cmd.exe /C "C:\Users\[username]\winbats\dogbones.bat"
Run Code Online (Sandbox Code Playgroud)
他们都打开命令提示符,但没有人执行批处理文件。
有谁知道在 Windows 8 中将批处理文件固定到任务栏的正确语法或其他方法吗?
windows-8 ×1