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 中将批处理文件固定到任务栏的正确语法或其他方法吗?
Tom*_*Eus 15
PIN 到主屏幕(开始):
%AppData%\Microsoft\Windows\Start Menu\ProgramsMy ScriptMy Script并单击Pin to Start或Pin to taskbar这将允许主屏幕(开始)和任务栏:
Desktop并选择New>Shortcutcmd.exe /c "path\to\script.bat"path\to\script.bat为 .bat 文件的实际路径。Next,命名快捷方式并单击Finish。固定:
Start主屏幕,请右键单击新快捷方式并选择Pin to Start。Pin to Taskbar。| 归档时间: |
|
| 查看次数: |
11684 次 |
| 最近记录: |