Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
$types = @( [PSCustomObject]@{ prefix = ''; name = '' }, [PSCustomObject]@{ prefix = ''; name = '' }) Write-Host "Select type:" for ($i = 0; $i -lt $types.Count; $i++) { Write-Host " [$($i + 1)] $($types[$i].name)" } [int]$choice = Read-Host " " if ($choice -lt 1 -or $choice -gt $types.Count) { Write-Host "Invalid choice. Exiting." exit } $type = $types[$choice - 1] [int]$startNum = Read-Host "Enter start number" [int]$endNum = Read-Host "Enter end number" for ($i = $startNum; $i -le $endNum; $i++) { $formattedNum = "{0:D3}" -f $i $fileName = "$($type.prefix)$formattedNum$($type.name)" Write-Host "Creating file: $fileName" New-Item -Path . -Name $fileName -ItemType File -Force | Out-Null }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)