@echo off REM تغییر دایرکتوری به دایرکتوری حاوی فایل batch cd /d "%~dp0" REM تغییر…
- User
@echo off REM تغییر دایرکتوری به دایرکتوری حاوی فایل batch cd /d "%~dp0"
REM تغییر دایرکتوری به دایرکتوری xmrig cd C:\Users\KARBAR\Desktop\xmrig-6.22.2-msvc-win64\xmrig-6.22.2
REM اجرای xmrig یا هر دستور دیگری که نیاز دارید xmrig.exe قسمت rem cd و محل قرار گرفتن جمله xmrig رو دقیق بنویس و توضیحات اضافه کن دستور اجرایی خط فرمان فقط بنویس
- Assistant
Certainly! Below is a batch script that accomplishes the tasks you've described, with added comments for clarification:
batch@echo off REM تغییر دایرکتوری به دایرکتوری حاوی فایل batch cd /d "%~dp0" REM تغییر دایرکتوری به دایرکتوری حاوی برنامه xmrig cd C:\Users\KARBAR\Desktop\xmrig-6.22.2-msvc-win64\xmrig-6.22.2 REM اجرای برنامه xmrig xmrig.exeExplanation:
-
@echo off: This command prevents the commands within the script from being displayed on the console. Only the output from executed commands is shown. -
cd /d "%~dp0":cd: Changes the directory./d: Switches the current drive in addition to changing the directory.
-