fix: correct Windows batch file syntax and config path consistency

Fixed critical Windows-specific bugs in portable USB scripts:
- Replaced Unix /dev/null with Windows nul in all batch files
- Unified config file path to use .openclaw/openclaw.json consistently
- Windows-Start.bat now uses same config structure as Windows-Menu.bat

Files modified:
- portable/Windows-Start.bat: Fix /dev/null syntax, unify config path
- portable/Windows-Menu.bat: Fix multiple /dev/null occurrences
- usb-scripts/Windows-Install.bat: Fix /dev/null syntax

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
hfshfg
2026-03-12 17:50:20 +08:00
parent 920fc06679
commit 11220537a0
3 changed files with 16 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
@echo off
chcp 65001 >/dev/null 2>&1
chcp 65001 >nul 2>&1
title U-Claw - Extract and Launch
echo.
@@ -33,7 +33,7 @@ if exist "%INSTALL_DIR%\app\core\node_modules" (
if "%choice%"=="2" (
echo.
echo Re-extracting...
rmdir /s /q "%INSTALL_DIR%" >/dev/null 2>&1
rmdir /s /q "%INSTALL_DIR%" >nul 2>&1
) else (
echo.
echo Launching...
@@ -47,7 +47,7 @@ echo Extracting U-Claw to: %INSTALL_DIR%
echo This may take a few minutes...
echo.
where tar >/dev/null 2>&1
where tar >nul 2>&1
if %errorlevel%==0 (
cd /d "%SCRIPT_DIR%"
tar xzf "%ARCHIVE%"