-如果你有把自己DeepseekHarness的安装文件夹设置在工作区的子目录,希望你能好好翻一翻嘟嘟熊OwO的评论。也许会对你有帮助。
以下是精简内容,请慎重分辨是否会对你的计算机造成损害!:
①新建文本档案.txt
②把文件移动到DeepseekHarness.exe相同的目录
③把文件的后缀名由.txt改为.bat
④将以下代码粘贴至新建文本文档.bat,保存。然后双击启动程序,就可以强行启动DeepseekHarness。
(我复制“嘟嘟熊OwO”大佬的文件如果有错误,请自行到评论区查看)
⑤此时,DeepseekHarness.exe依然无法正常启动,你需要告诉AI排查一下安装的文件夹什么的,看文件完不完整。
⑥然后跟它说“是不是因为把安装程序的文件夹归到了工作区文件夹的子目录。在某一次工作中把工作区的文件夹设置为了低权限才导致无法启动。”(这一步它思考了30多分钟,期间提了几个选项)
注:每个人的出错原理可能不同,这里的方法不一定能帮到你。
@echo off
setlocal
rem Force-start the DSH desktop app: software rendering + no Chromium sandbox, elevated.
rem
rem HOW TO USE
rem 1. Put this .bat NEXT TO "DeepSeek Harness.exe".
rem 2. Save it as ANSI (or UTF-8 WITHOUT BOM). Never paste its lines into a console.
rem 3. Double-click it. A UAC prompt appears - click Yes.
rem
rem WHY THE PATH GOES THROUGH AN ENVIRONMENT VARIABLE
rem The folder name may contain non-ASCII characters. Environment values are passed
rem as Unicode, while a command line is re-encoded per console codepage; using
rem %DSH_EXE% keeps such a path intact. Do not inline the path into the command.
set "DSH_EXE=%~dp0DeepSeek Harness.exe"
if not exist "%DSH_EXE%" (
echo 【ERROR】 DeepSeek Harness.exe is not next to this .bat.
echo Move this .bat into the folder that contains the app.
echo.
pause
exit /b 1
)
echo Launching: --disable-gpu --no-sandbox (a UAC prompt will appear - click Yes)
echo.
powershell -NoProfile -Command "try { if (-not (Test-Path -LiteralPath $env:DSH_EXE)) { throw 'exe not found' }; Start-Process -FilePath $env:DSH_EXE -ArgumentList @('--disable-gpu','--no-sandbox') -Verb RunAs -ErrorAction Stop; Write-Host 'RESULT: OK - launch request sent, the app window should appear.' } catch { Write-Host ('RESULT: FAILED - ' + $_.Exception.Message) }"
echo.
echo (If RESULT says FAILED, send that line back.)
pause