个人知识管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

34 lines
948 B

@echo off
echo Testing PKM System with quoted arguments...
echo.
echo ========================================
echo 1. Clean start
echo ========================================
if exist notes.txt del notes.txt
echo ========================================
echo 2. Create notes with quoted arguments
echo ========================================
java -cp "target/classes" com.example.App new "Java Basics" "Object-oriented programming principles"
java -cp "target/classes" com.example.App new "Design Patterns" "Software design patterns"
echo.
echo ========================================
echo 3. List notes
echo ========================================
java -cp "target/classes" com.example.App list
echo.
echo ========================================
echo 4. View notes.txt content
echo ========================================
if exist notes.txt (
type notes.txt
) else (
echo notes.txt not found
)
echo.
echo Test completed!
pause