Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

batch avec un renommage de fichier

Featured Replies

Posté(e)

Bonjour,

J'ai un petit script qui me pose soucis. j'ai une variable myvar qui contient le jour et la date sous cette forme vend. 24102008

Lorsque j'effectue la commande echo %myvar% > bilou.txt le contenu de bilou.txt est bien vend. 24102008

J'aimerai bien renommer un fichier texte en incluant cette variable dans le nouveau nom.

ren test.txt test_%myvar%.txt

malheureusement, j'ai un jolie message d'erreur en retour (syntaxe incorrecte). Pourriez-vous me dire la commande exacte pour que cela puisse fonctionner ?

D'avance, je vous remercie.

Posté(e)

sans doute parce qu'il y a un espace dans my_var, mets le nom entre guillement

ren test.txt "test_%myvar%.txt"

Posté(e)
  • Auteur

Bonsoir,

Effectivement, il y a du progrès, je parviens maintenant à renommer le fichier, l'ennuyant, c'est qu'après l'avoir renommé, j'ai deux espace qui apparaissent en lieu et place du caractère % (juste après l'underscore et juste avant l'extension.

test_ sam. 25102008 .txt

Merci

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.