@echo off setlocal set fileName="Maws, Paws, Tails & Claws.jar" set /A memory=4096 title…
- User
@echo off setlocal
set fileName="Maws, Paws, Tails & Claws.jar" set /A memory=4096
title %fileName%
if not exist %fileName% ( echo File not found: %fileName% exit /b 1 )
:start echo Starting server... java -Xms%memory%M -Xmx%memory%M -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 --add-modules=jdk.incubator.vector -Dfile.encoding=UTF-8 -jar %fileName% --nogui
echo Server stopped. Restarting in 5 seconds... echo Press CTRL + C to cancel. timeout 5 goto :start
Он в title выводит в ковычках и с окончанием .jar так не надо
Assistant
Here's the corrected script with improved title formatting:
@echo off setlocal set fileName=Maws, Paws, Tails & Claws.jar set /A memory=4096 title %fileName:~0,-4% if not exist "%fileName%" ( echo File not found: %fileName% exit /b 1 ) :start echo Starting server... java -Xms%memory%M -Xmx%memory%M -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 --add-modules=jdk.incubator.vector -Dfile.encoding=UTF-8 -jar "%fileName%" --nogui echo Server stopped. Restarting in 5 seconds... echo Press CTRL + C to cancel. timeout 5 goto :startKey changes made:
- Removed quotes from
fileNamedefinition - Used
%fileName:~0,-4%to remove.jarextension in title - Added quotes around
%fileName%in the Java command for path safety
The title will now display as "Maws, Paws, Tails & Claws" without quotes or file extension, while maintaining proper file path handling in the Java command.
- Removed quotes from
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.