105 résultats trouvés
- 23 nov. 2019 20:21
- Forum : Création de batchs, problèmes...
- Sujet : Variable
- Réponses : 3
- Vues : 9232
Re: Variable
Bonjour, Tu ne peux pas découper directement les variables de la boucle FOR, il faut assigner une nouvelle variable : @echo off setlocal enabledelayedexpansion for /f "tokens=1,2,3 delims=;" %%I in (d:\EXTRACT_CD\toto.txt) do ( set champ=%%K if "%%I"=="A" SET "DATE...
- 20 août 2019 21:51
- Forum : Création de batchs, problèmes...
- Sujet : merge multiple text files, removing all headers and the new header will be changed as follows
- Réponses : 5
- Vues : 11588
Re: merge multiple text files, removing all headers and the new header will be changed as follows
Voilà c'est corrigé : @ECHO OFF SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION chcp 28591 >nul set resultat=ALL_IN_ONE_CCP.txt : ---------------------------------------------------- : on teste la présence du fichier ADD.bat : ---------------------------------------------------- if not exi...
- 19 août 2019 21:53
- Forum : Création de batchs, problèmes...
- Sujet : merge multiple text files, removing all headers and the new header will be changed as follows
- Réponses : 5
- Vues : 11588
Re: merge multiple text files, removing all headers and the new header will be changed as follows
J'aimerais bien t'aider mais je ne vois pas de quoi tu parles.
Est-ce que tu parles des espaces entre les noms et le chiffre 0 ou 1 à droite de chaque ligne ?
Est-ce que tu parles des espaces entre les noms et le chiffre 0 ou 1 à droite de chaque ligne ?
- 19 août 2019 00:08
- Forum : Création de batchs, problèmes...
- Sujet : merge multiple text files, removing all headers and the new header will be changed as follows
- Réponses : 5
- Vues : 11588
Re: merge multiple text files, removing all headers and the new header will be changed as follows
Voilà la totalité du script : @ECHO OFF SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION chcp 28591 >nul set resultat=ALL_IN_ONE_CCP.txt : ---------------------------------------------------- : on teste la présence du fichier ADD.bat : ---------------------------------------------------- if...
- 18 août 2019 23:40
- Forum : Création de batchs, problèmes...
- Sujet : merge multiple text files, removing all headers and the new header will be changed as follows
- Réponses : 5
- Vues : 11588
Re: merge multiple text files, removing all headers and the new header will be changed as follows
Ok je vais t'aider pour la suite.
- 18 août 2019 22:19
- Forum : Création de batchs, problèmes...
- Sujet : merge multiple text files, removing all headers and the new header will be changed as follows
- Réponses : 5
- Vues : 11588
Re: merge multiple text files, removing all headers and the new header will be changed as follows
J'ai déjà créé la première partie qui consiste à construire un nouveau header à partir de tous les fichiers textes : @ECHO OFF SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION chcp 28591 >nul : ---------------------------------------------------- : on teste la présence du fichier ADD.bat : ...
- 18 août 2019 04:57
- Forum : Création de batchs, problèmes...
- Sujet : merge multiple text files, removing all headers and the new header will be changed as follows
- Réponses : 5
- Vues : 11588
Re: merge multiple text files, removing all headers and the new header will be changed as follows
Bonjour,
Je veux bien t'aider mais il me faudrait plusieurs fichiers pour faire des tests.
Je veux bien t'aider mais il me faudrait plusieurs fichiers pour faire des tests.
- 04 août 2019 16:28
- Forum : Création de batchs, problèmes...
- Sujet : besoin de conseil
- Réponses : 4
- Vues : 11216
Re: besoin de conseil
Merci pour le gros clin d'oeil, ce n'était pas utile mais ça fait plaisir ! Concernant la commande CHCP, elle sert à modifier le codepage, elle est généralement utilisée pour gérer l'affichage des caractères accentués. Le codepage par défaut est 850, cela te permet de faire ton beau cadre en caractè...
- 04 août 2019 12:19
- Forum : Création de batchs, problèmes...
- Sujet : besoin de conseil
- Réponses : 4
- Vues : 11216
Re: besoin de conseil
Bonjour, Plusieurs petites erreurs dans tes 3 premiers IF : - pourquoi utiliser le commutateur /i alors que tu testes des chiffres ? - pourquoi utiliser SET /A alors que tu ne fais pas de calcul ? SET suffit à déclarer une variable - ce n'est pas une erreur mais quand tu compares des valeurs prend l...
- 11 juil. 2019 23:13
- Forum : Création de batchs, problèmes...
- Sujet : PROBLEMES SUR UTILISATION BOUCLE FOR
- Réponses : 1
- Vues : 8030
Re: PROBLEMES SUR UTILISATION BOUCLE FOR
Bonjour, Essaie comme ça : @echo off setlocal enableextensions enabledelayedexpansion chcp 28591 >nul cd /d D:\TEST for /L %%A in (1,1,120) do ( set index=00%%A set index=!index:~-3! if not exist "stock!index!" (md "stock!index!") copy "vente.txt" "D:\TEST\stock!in...