Skip to content
Back to skills

ساخت اسکریپت بچ ویندوز برای ریستارت آپاچی با رمز عبور ثابت

ASecurity

ایجاد فایل بچ (.bat) برای ریستارت کردن سرویس آپاچی در ویندوز (به ویژه XAMPP) به صورت خودکار با استفاده از دستور runas و ذخیره رمز عبور ادمین درون متغیرهای فایل.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
toolssecurity

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill 'ساخت-اسکریپت-بچ-ویندوز-برای-ریستارت-آپاچی-با-رمز-عبور-ثابت' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of ساخت اسکریپت بچ ویندوز برای ریستارت آپاچی با رمز عبور ثابت?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for ساخت اسکریپت بچ ویندوز برای ریستارت آپاچی با رمز عبور ثابت
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-meta-skill-evloving-164fba7d/badge)](https://www.skillsdirectory.com/skills/david-li0406-meta-skill-evloving-164fba7d)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "39a44f08-4b3a-4ce7-9a47-6f3389abbc28"
name: "ساخت اسکریپت بچ ویندوز برای ریستارت آپاچی با رمز عبور ثابت"
description: "ایجاد فایل بچ (.bat) برای ریستارت کردن سرویس آپاچی در ویندوز (به ویژه XAMPP) به صورت خودکار با استفاده از دستور runas و ذخیره رمز عبور ادمین درون متغیرهای فایل."
version: "0.1.0"
tags:
  - "windows"
  - "batch"
  - "apache"
  - "xampp"
  - "automation"
triggers:
  - "ساخت اسکریپت بچ ریستارت آپاچی با رمز"
  - "bat file restart apache with password"
  - "runas password in file"
  - "اسکریپت ریستارت آپاچی بدون سوال رمز"
  - "ذخیره رمز در فایل بچ"
---

# ساخت اسکریپت بچ ویندوز برای ریستارت آپاچی با رمز عبور ثابت

ایجاد فایل بچ (.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
1. The script must define variables for `username` (e.g., Administrator) and `password` at the top.
2. The script must use the `runas` command to execute `httpd.exe -k stop` and `httpd.exe -k start`.
3. The password must be passed to `runas` via piping (e.g., `echo %password% | runas ...`) to avoid interactive prompts.
4. The default path for Apache is `C:/xampp/apache/bin/httpd`.
5. 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
- اسکریپت ریستارت آپاچی بدون سوال رمز
- ذخیره رمز در فایل بچ

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…