让我们先给你我的代码:
@echo off
echo.Add App Shortcut for use with
echo.Windows+R
echo.A.K.A Windows "RUN" Command
echo.===========================
color 0E
echo.Make Sure you do not run as admin
pause
cls
color 07
del tool.reg
cls
echo.Example: HxD
set /p key="Type the name of the app shortcut here: "
cls
echo.Example: F:\Tools\HxD
set /p appfolder="Type the folder of the app here: "
cls
echo.Example: F:\Tools\HxD\HxD.exe
set /p apppath="Type the path of the app here: "
cls
echo Windows Registry Editor Version 5.00 >> tool.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths] >> tool.reg
echo "%key%"=Key >>tool.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\%key%] >> tool.reg
echo "Default"="%apppath%" >> tool.reg
echo "Path"="%appfolder%" >> tool.reg
pause
echo.Launching The Tool
start tool.reg
那么这里的问题是,路径例如 F:\Programs\HxD 。每当输入该路径时,它都会检测到斜杠“\”并停止执行命令。有解决方法吗?谢谢!