Renomer des fichiers

5 sujets de 1 à 5 (sur un total de 5)

  • stephbb75

      #363207

      Salut,

      J’ai pas mal de fichier a renommer sur un Amiga, je tente d’utiliser rename avec #? mais bon, c’est pas concluent 🙁

      Y’a t’il un equivalent à ren *.toto *.titi sur Amiga ?

      Steph

      https://youtube.com/@stephbb75

      __sam__

        #363211

        Il y a depuis longtemps un fichier mystérieux S:SPAT sur amiga. Il sert précisément à faire ce que tu veux.

        Déjà assures toi qu’il a bien le bit S positionné:

        Ram Disk:> list s:spat
        Directory "s:" on Friday 17-Dec-21
        spat                         314 -s--rwed 17-Jan-04 19:22:32
        1 file - 2 blocks used
        Ram Disk:> 

        Cela permettra de lancer la commande sans faire « Execute ». S’il n’a pas le bit S positionné, tu dois faire protect s:spat +s pour le lui mettre.

        Ensuite c’est tout simple, tu fais s:spat rename #?.toto as %m.titi

        Exemple:

        Ram Disk:> ECHO >1.toto
        Ram Disk:> ECHO >2.toto
        Ram Disk:> ECHO >3.toto
        Ram Disk:> list
        3.toto                     empty ----rwed Today     00:36:29
        2.toto                     empty ----rwed Today     00:36:26
        1.toto                     empty ----rwed Today     00:36:22
        3 files - 6 blocks used
        Ram Disk:> s:spat rename #?.toto as %m.titi
        Ram Disk:> list
        1.titi                     empty ----rwed Today     00:36:22
        2.titi                     empty ----rwed Today     00:36:26
        3.titi                     empty ----rwed Today     00:36:29
        3 files - 6 blocks used
        Ram Disk:> 
        

        Le format « %m » suit la syntaxe du LFORMAT d’un LIST:

        %A	Prints file attributes (protection bits).
        %B	Prints size of file in blocks.
        %C	Prints any comments attached to the file.
        %D	Prints the date associated with the file.
        %E	Prints the file extension.
        %F	Prints the full file parent path.
        %G	Prints the name of the group which 'owns' the file.
        %K	Prints the file key block number.
        %L	Prints the length of the file in bytes.
        %M	Prints the file name only, omitting any extension.
        %N	Prints the name of the file.
        %P	Prints the file parent path.
        %R	Prints the name of the object the file/directory is linked to.
        %T	Prints the time associated with the file.
        %U	Prints the name user who 'owns' the file.
        %V	Prints group/other file attributes (protection bits)

        Samuel.

        Amiga A500 + GVP530 (8Mo/fpu/mmu/scsi) - en panne 🙁
        A500 (+ 1Mo PPS), A1200 (Blizzard-IV/fpu/64Mo)
        A500 Vampire V2+ ^8^ 🙂
        (mais aussi TO8, TO8D, TO9. Groupe PULS.)

        JiDeWe

          #363212

          Quel plaisir de pouvoir lire de bon matin des pros de l’Amiga Dos
          merci

          1 A500 2mo, 1 A500 512ko +ACA500+, 1 msx 8235 et des consoles.
          Une guerre se termine, il ne reste que des survivants et ceux qui ont tiré les ficelles qui écrivent ou réécrivent l’histoire...... et préparent une autre guerre... du genre ok je n'envoie pas de tomahawk, et tu me laisses tranquille quand j'attaque la colombie et le venezuela..

          stephbb75

            #363224

            Salut @__sam__,

            Merci pour ces info 🙂
            Je ne connaissais pas du tout cela, encore appris un truc sur l’Amiga de bon matin 🙂
            Je testerais la semaine prochaine, j’uis pas avec mes Amiga se WE :-O

            https://youtube.com/@stephbb75

            Jeeg

              #363225

              Bonne question et belle réponse, moi aussi j’ai appris quelque chose ce matin, merci messieurs. 🙂

              A500+ avec vampire
              A1200 et A4000D

            5 sujets de 1 à 5 (sur un total de 5)

            • Vous devez être connecté pour répondre à ce sujet.

            Forums AmigaOS, MorphOS et AROS Général Renomer des fichiers

            Amiga Impact