Supprimer des sauvegardes et garder celle d'aujourd'hui
Fermé
bouh min min
Messages postés
2
Date d'inscription
mardi 15 janvier 2013
Statut
Membre
Dernière intervention
16 janvier 2013
-
15 janv. 2013 à 15:48
bouh min min Messages postés 2 Date d'inscription mardi 15 janvier 2013 Statut Membre Dernière intervention 16 janvier 2013 - 16 janv. 2013 à 10:17
bouh min min Messages postés 2 Date d'inscription mardi 15 janvier 2013 Statut Membre Dernière intervention 16 janvier 2013 - 16 janv. 2013 à 10:17
A voir également:
- Supprimer des sauvegardes et garder celle d'aujourd'hui
- Supprimer compte instagram - Guide
- Supprimer une page word - Guide
- Supprimer compte facebook - Guide
- Voir match en direct gratuitement aujourd'hui - Guide
- Panne orange aujourd'hui 2023 - Guide
2 réponses
salut :
[VBS] Supprimer les fichiers d'un repertoire en fonction de leur date de modification « Croc-Informatique.fr :
http://www.croc-informatique.fr/2009/11/vbs-supprimer-les-fichiers-dun-repertoire-en-fonction-de-leur-date-de-modification/
+
Forfiles :
http://technet.microsoft.com/fr-fr/library/cc753551(v=ws.10).aspx
forfiles [/p <Path>] [/m <SearchMask>] [/s] [/ c "<Command>"] [/d [{+ |-}] [{<Date> | <Days>}]]
+
Supprimer tous les fichiers de plus de 30 jours du dossiers C:\TEST :
forfiles /P C:\TEST /D -30 /M *.* /C "cmd /c echo @path && del /F /Q @path"
+
windows - nested forfiles: path and extension filter - Stack Overflow :
http://stackoverflow.com/questions/6909696/nested-forfiles-path-and-extension-filter
et
windows - How to Tell FORFILES to Execute Command on Path? - Stack Overflow :
http://stackoverflow.com/questions/508779/how-to-tell-forfiles-to-execute-command-on-path
The path needs to be quoted, and the quote must be escaped.
FORFILES -m *.wsp -c "CMD /C ^0x22C:\Program^ Files\Common^ Files\Microsoft^ Shared\web^ server^ extensions\12\bin\stsadm.exe^0x22 -o^ addsolution^ -filename^ @FILE"
A co-worker suggested using the hex for ", and I eventually figured out that the hex needed escaping.
+
Il nous faut un pro du script pour les finitions et explications ...
S'il vous plaît ; merci par avance ...
[VBS] Supprimer les fichiers d'un repertoire en fonction de leur date de modification « Croc-Informatique.fr :
http://www.croc-informatique.fr/2009/11/vbs-supprimer-les-fichiers-dun-repertoire-en-fonction-de-leur-date-de-modification/
+
Forfiles :
http://technet.microsoft.com/fr-fr/library/cc753551(v=ws.10).aspx
forfiles [/p <Path>] [/m <SearchMask>] [/s] [/ c "<Command>"] [/d [{+ |-}] [{<Date> | <Days>}]]
+
Supprimer tous les fichiers de plus de 30 jours du dossiers C:\TEST :
forfiles /P C:\TEST /D -30 /M *.* /C "cmd /c echo @path && del /F /Q @path"
+
windows - nested forfiles: path and extension filter - Stack Overflow :
http://stackoverflow.com/questions/6909696/nested-forfiles-path-and-extension-filter
et
windows - How to Tell FORFILES to Execute Command on Path? - Stack Overflow :
http://stackoverflow.com/questions/508779/how-to-tell-forfiles-to-execute-command-on-path
The path needs to be quoted, and the quote must be escaped.
FORFILES -m *.wsp -c "CMD /C ^0x22C:\Program^ Files\Common^ Files\Microsoft^ Shared\web^ server^ extensions\12\bin\stsadm.exe^0x22 -o^ addsolution^ -filename^ @FILE"
A co-worker suggested using the hex for ", and I eventually figured out that the hex needed escaping.
+
Il nous faut un pro du script pour les finitions et explications ...
S'il vous plaît ; merci par avance ...
bouh min min
Messages postés
2
Date d'inscription
mardi 15 janvier 2013
Statut
Membre
Dernière intervention
16 janvier 2013
16 janv. 2013 à 10:17
16 janv. 2013 à 10:17
la commande forfiles marche parfaitement
grand merci
grand merci