Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 839 Bytes

2018-10-25.md

File metadata and controls

27 lines (24 loc) · 839 Bytes

Listar ficheros mostrando el nombre

Get-ChildItem -Name

Listar ficheros mostrando el nombre y la fecha de creación

Get-ChildItem | select name,CreationTime

Listar ficheros DOCX y guardar el listado en un fichero

#Listar ficheros *.docx
Get-ChildItem *.docx -Recurse -Force
#Listar ficheros mostrando el nombre y la fecha de creación
Get-ChildItem *.docx -Recurse -Force | select name,CreationTime
#Listar ficheros mostrando el nombre y la fecha de creación y guardar el listado en un fichero llamado listado.txt
Get-ChildItem *.docx -Recurse -Force | select name,CreationTime | out-file listado.txt
#Ver el contenido del fichero
Get-Content listado.docx

Crear un fichero y listarlo

New-Item fichero.txt -ItemType file -Force
Get-ChildItem .\fichero.txt