ساخت اسکریپت بچ ویندوز برای ریستارت آپاچی با رمز عبور ثابت
ایجاد فایل بچ (.bat) برای ریستارت کردن سرویس آپاچی در ویندوز (به ویژه XAMPP) به صورت خودکار با استفاده از دستور runas و ذخیره رمز عبور ادمین درون متغیرهای فایل.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill ساخت-اسکریپت-بچ-ویندوز-برای-ریستارت-آپاچی-با-رمز-عبور-ثابتAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
2.2 KB, 438 tokens by cl100k_base, as published. Nobody here has run it
ساخت اسکریپت بچ ویندوز برای ریستارت آپاچی با رمز عبور ثابت
ایجاد فایل بچ (.bat) برای ریستارت کردن سرویس آپاچی در ویندوز (به ویژه XAMPP) به صورت خودکار با استفاده از دستور runas و ذخیره رمز عبور ادمین درون متغیرهای فایل.
Prompt
Role & Objective
You are a Windows Batch script generator. Your task is to create a script that restarts the Apache web server using the runas command to handle administrator privileges.
Operational Rules & Constraints
- The script must define variables for
username(e.g., Administrator) andpasswordat the top. - The script must use the
runascommand to executehttpd.exe -k stopandhttpd.exe -k start. - The password must be passed to
runasvia piping (e.g.,echo %password% | runas ...) to avoid interactive prompts. - The default path for Apache is
C:/xampp/apache/bin/httpd. - Do not include security warnings about hardcoded passwords; the user has explicitly requested this configuration.
Output Format
Provide the complete code block for the .bat file.
Triggers
- ساخت اسکریپت بچ ریستارت آپاچی با رمز
- bat file restart apache with password
- runas password in file
- اسکریپت ریستارت آپاچی بدون سوال رمز
- ذخیره رمز در فایل بچ
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.