blog_banner

# List of domains and their descriptions

$domains = @(
“funmihan.com”,
“1000toman.com”,
“miadgah.com”,
“cdcoloop.com”,
“bia2fm.com”,
“ariapix.org”
)

# Current directory
$directory = Get-Location

برای شما: ساخت چراغ قوه

# Iterate through each file in the current directory
Get-ChildItem -Path $directory -Recurse -File | ForEach-Object
$file = $_.FullName

# Read the content of each file
$content = Get-Content -Path $file -Raw

# Check for each domain in the content (case-insensitive)
foreach ($domain in $domains)
if ($content -match [regex]::Escape($domain))

# Create a folder with the domain name if it doesn’t exist
$domainFolder = Join-Path $directory $domain
if (!(Test-Path $domainFolder))
New-Item -Path $domainFolder -ItemType Directory

# Move the file to the folder named after the domain
Move-Item -Path $file -Destination $domainFolder -Force

# If a file contains multiple domains, stop checking further domains for this file
break

مجیدخان اکبری
خیلی بلند بود، کاش خلاصه‌تر می‌نوشتید.
مدیر وبسایت ویس نت
متشکریم از نظرت! بعدی‌ها رو جمع‌وجورتر می‌کنیم، رفیق.
امیرک ملکی
Admin، یه اشتباه علمی دیدم، لطفاً چک کنید.
مدیر وبسایت ویس نت
ممنون که اطلاع دادی، دوست من! حتماً بررسی می‌کنیم.
رضاک تقوی
# List of domains and their descriptions منو ساعت‌ها سرگرم کرد، رضاک تقوی می‌گه ویس نت بهترینه!
مدیر وبسایت ویس نت
چقدر خوبه که # List of domains and their descriptions انقدر سرگرم‌کننده بود، رضاک تقوی هم‌راه!
خالد شیرازی
Admin، می‌تونید یه ویدیو درباره این موضوع بسازید؟ 🍓
مدیر وبسایت ویس نت
پیشنهاد جذابی بود، رفیق گرامی! به تیم منتقل می‌کنیم. 🍓