Forfiles examples. Below is an example of a forfiles command that will list any file that is older than 30 days. forfiles /d -30. This second example is a forfiles.Es un escenario que se repite contínuamente en entornos de administración de sistemas, guardando varias copias de seguridad, o archivos antiguos en ciertos. FORFILES.exe (Native command in Vista/Windows7/2008, via Resource Kit for XP) Select a file (or set of files) and execute a command on each file. May be it is a bug: I run the forfiles command from windows prompt and it work ok. When i copy paste the same command into a cmd file it goes into an infinite loop. The forfiles command first became available in the Windows Vista operating system as part of the management features. It allows command line users to run commands for. I'm working on a batch script that will let me delete files older then a set period using forfiles. For now, I'm aiming at printing the files that will be deleted. I am trying to generate a text file containing the filename (including full path) and file size for all files in a particular directory and any of its sub-directories.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
September 2016
Categories |