Shaare your links...
6241 links
Shared links on http://www.la-pub-dans-les-films.fr/shaarli/ Home Login RSS Feed ATOM Feed Tag cloud Picture wall Daily
Links per page: 20 50 100
page 1 / 1
  • Own note powershell renommer fichier et y inserer du contenu depuis un fichier texte
    movies

    # Lire le contenu du fichier "input.txt"
    $fichiers = Get-Content -Path "C:\blabla\input.txt"

    # Créer les fichiers texte
    #foreach ($fichier in $fichiers) {
    #    $nomFichier = [System.IO.Path]::GetFileName($fichier)
    #    $fichierComplet = Join-Path -Path "C:\blabla" -ChildPath $nomFichier
    #    New-Item -Path $fichierComplet -ItemType File -Value $fichier
    #    Write-Output "Fichier $nomFichier créé."
    #}

    # Créer les fichiers texte avec une certaine extension
    foreach ($fichier in $fichiers) {
       $nomFichier = [System.IO.Path]::GetFileNameWithoutExtension($fichier) + ".strm"
       $fichierComplet = Join-Path -Path "C:\blabla" -ChildPath $nomFichier
       New-Item -Path $fichierComplet -ItemType File -Value $fichier
       Write-Output "Fichier $nomFichier créé."
    }

    ---------------------------

    TV show

    $input_file = "input.txt"

    Get-Content $input_file | ForEach-Object -Begin {
       $line_num = 1
    } -Process {
       $line = $_.TrimEnd()
       $line = $line -replace '\s+$'
       $output_file = "output_$line_num.strm"
       Set-Content $output_file $line
       $line_num++
    }
    Mon Aug 26 14:27:39 2024 - permalink -
    - ?QfNNhg
    powershell
Links per page: 20 50 100
page 1 / 1
Shaarli 0.0.41 beta - The personal, minimalist, super-fast, no-database delicious clone. By sebsauvage.net. Theme by idleman.fr.