我正在进行保存/加载,我的负载无法正常工作。我做错了什么?

时间:2014-04-28 05:12:19

标签: windows batch-file

echo off

goto Save/Load

:Load 
cls
echo Type in the name of your Load
set /f ld="Enter:
< %ld%.sav
(
  set /p highscore=
  set /p User2=

> `Blockquote`

  set /p points=
)

pause
Goto Save/Load
:exit
exit

1 个答案:

答案 0 :(得分:1)

从文件中读取并使用括号时,括号需要与< file在同一行开始。

< %ld%.sav
(
  set /p highscore=
  set /p User2=
  set /p points=
)

需要

< %ld%.sav (
  set /p highscore=
  set /p User2=
  set /p points=
)