La commande xcopy
bavieux
-
dubcek Messages postés 19030 Date d'inscription Statut Contributeur Dernière intervention -
dubcek Messages postés 19030 Date d'inscription Statut Contributeur Dernière intervention -
Bonjour,
je suis conformter à un problème donc j'ai besoin d'une aide au faite je veux automatiser une certaine tache sous DOS , j'ai une application qui me génère un fichier en format PDF , j'ai mis en place un scripte qui me permet de modifier le nom du fichier après de copier à un endroit pour un autre usage mais dans le scripte j'ai un fichier de nom AVISDA????.pdf dont je veux dupliqué en AVISDA.pdf et AVISCT.pdf que vous trouverez en ci dessous avec mon scripte:
Le scripte:
cd C:\OUT\PDF
xcopy AVISDA*.pdf AVISDA.pdf
xcopy AVISDA*.pdf AVISCT.pdf
xcopy AVISPT*.pdf AVISPT.pdf
xcopy AVISRC*.pdf AVISRC.pdf
xcopy AVISSP*.pdf AVISSP.pdf
xcopy AVISDA.pdf C:\TRANSFERT\starjet
xcopy AVISCT.pdf C:\TRANSFERT\starjet
xcopy AVISPT.pdf C:\TRANSFERT\starjet
xcopy AVISRC.pdf C:\TRANSFERT\starjet
xcopy AVISSP.pdf C:\TRANSFERT\starjet
le resultat de l'execution du scripte:
C:\Documents and Settings\sidibe_s\Mes documents>cd C:\OUT\PDF
C:\OUT\PDF>xcopy AVISDA*.pdf AVISDA.pdf
Est-ce que AVISDA.pdf spécifie un nom de fichier
ou un nom de répertoire de la destination
(F = fichier, R = répertoire) ? f
C:AVISDA2007_11_01_20_13_16.pdf
1 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISDA*.pdf AVISCT.pdf
Est-ce que AVISCT.pdf spécifie un nom de fichier
ou un nom de répertoire de la destination
(F = fichier, R = répertoire) ? f
C:AVISDA.pdf
Remplacer C:\OUT\PDF\AVISCT.pdf (Oui/Non/Tous)? t
C:AVISDA2007_11_01_20_13_16.pdf
2 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISPT*.pdf AVISPT.pdf
Est-ce que AVISPT.pdf spécifie un nom de fichier
ou un nom de répertoire de la destination
(F = fichier, R = répertoire) ? f
C:AVISPT2007_11_01_20_13_16.pdf
1 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISRC*.pdf AVISRC.pdf
Est-ce que AVISRC.pdf spécifie un nom de fichier
ou un nom de répertoire de la destination
(F = fichier, R = répertoire) ? f
C:AVISRC2007_11_01_20_13_17.pdf
1 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISSP*.pdf AVISSP.pdf
Est-ce que AVISSP.pdf spécifie un nom de fichier
ou un nom de répertoire de la destination
(F = fichier, R = répertoire) ? f
C:AVISSP2007_11_01_20_13_13.pdf
1 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISDA.pdf C:\TRANSFERT\starjet
C:AVISDA.pdf
1 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISCT.pdf C:\TRANSFERT\starjet
C:AVISCT.pdf
1 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISPT.pdf C:\TRANSFERT\starjet
C:AVISPT.pdf
1 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISRC.pdf C:\TRANSFERT\starjet
C:AVISRC.pdf
1 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISSP.pdf C:\TRANSFERT\starjet
C:AVISSP.pdf
1 fichier(s) copié(s)
Donc en conclusion je veux le scripte soit exécuter sans me poser toutes ces questions car je suis obligé de repondre manuellement alors que je veux de l'automatisme.
Cordialement
Bavieux
je suis conformter à un problème donc j'ai besoin d'une aide au faite je veux automatiser une certaine tache sous DOS , j'ai une application qui me génère un fichier en format PDF , j'ai mis en place un scripte qui me permet de modifier le nom du fichier après de copier à un endroit pour un autre usage mais dans le scripte j'ai un fichier de nom AVISDA????.pdf dont je veux dupliqué en AVISDA.pdf et AVISCT.pdf que vous trouverez en ci dessous avec mon scripte:
Le scripte:
cd C:\OUT\PDF
xcopy AVISDA*.pdf AVISDA.pdf
xcopy AVISDA*.pdf AVISCT.pdf
xcopy AVISPT*.pdf AVISPT.pdf
xcopy AVISRC*.pdf AVISRC.pdf
xcopy AVISSP*.pdf AVISSP.pdf
xcopy AVISDA.pdf C:\TRANSFERT\starjet
xcopy AVISCT.pdf C:\TRANSFERT\starjet
xcopy AVISPT.pdf C:\TRANSFERT\starjet
xcopy AVISRC.pdf C:\TRANSFERT\starjet
xcopy AVISSP.pdf C:\TRANSFERT\starjet
le resultat de l'execution du scripte:
C:\Documents and Settings\sidibe_s\Mes documents>cd C:\OUT\PDF
C:\OUT\PDF>xcopy AVISDA*.pdf AVISDA.pdf
Est-ce que AVISDA.pdf spécifie un nom de fichier
ou un nom de répertoire de la destination
(F = fichier, R = répertoire) ? f
C:AVISDA2007_11_01_20_13_16.pdf
1 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISDA*.pdf AVISCT.pdf
Est-ce que AVISCT.pdf spécifie un nom de fichier
ou un nom de répertoire de la destination
(F = fichier, R = répertoire) ? f
C:AVISDA.pdf
Remplacer C:\OUT\PDF\AVISCT.pdf (Oui/Non/Tous)? t
C:AVISDA2007_11_01_20_13_16.pdf
2 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISPT*.pdf AVISPT.pdf
Est-ce que AVISPT.pdf spécifie un nom de fichier
ou un nom de répertoire de la destination
(F = fichier, R = répertoire) ? f
C:AVISPT2007_11_01_20_13_16.pdf
1 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISRC*.pdf AVISRC.pdf
Est-ce que AVISRC.pdf spécifie un nom de fichier
ou un nom de répertoire de la destination
(F = fichier, R = répertoire) ? f
C:AVISRC2007_11_01_20_13_17.pdf
1 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISSP*.pdf AVISSP.pdf
Est-ce que AVISSP.pdf spécifie un nom de fichier
ou un nom de répertoire de la destination
(F = fichier, R = répertoire) ? f
C:AVISSP2007_11_01_20_13_13.pdf
1 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISDA.pdf C:\TRANSFERT\starjet
C:AVISDA.pdf
1 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISCT.pdf C:\TRANSFERT\starjet
C:AVISCT.pdf
1 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISPT.pdf C:\TRANSFERT\starjet
C:AVISPT.pdf
1 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISRC.pdf C:\TRANSFERT\starjet
C:AVISRC.pdf
1 fichier(s) copié(s)
C:\OUT\PDF>xcopy AVISSP.pdf C:\TRANSFERT\starjet
C:AVISSP.pdf
1 fichier(s) copié(s)
Donc en conclusion je veux le scripte soit exécuter sans me poser toutes ces questions car je suis obligé de repondre manuellement alors que je veux de l'automatisme.
Cordialement
Bavieux
A voir également:
- La commande xcopy
- Invite de commande - Guide
- Commande terminal mac - Guide
- Commande dism - Guide
- Commande scannow - Guide
- Masquer commande amazon - Guide