Friday 24 July 2020

powershell 2

get-childitem | Format-list *

PSPath            : Microsoft.PowerShell.Core\FileSystem::C:\Users\bob\Untitled1.ipynb
PSParentPath      : Microsoft.PowerShell.Core\FileSystem::C:\Users\bob
PSChildName       : Untitled1.ipynb
PSDrive           : C
PSProvider        : Microsoft.PowerShell.Core\FileSystem
PSIsContainer     : False
Mode              : -a----
VersionInfo       : File:             C:\Users\bob\Untitled1.ipynb
                    InternalName:
                    OriginalFilename:
                    FileVersion:
                    FileDescription:
                    Product:
                    ProductVersion:
                    Debug:            False
                    Patched:          False
                    PreRelease:       False
                    PrivateBuild:     False
                    SpecialBuild:     False
                    Language:

BaseName          : Untitled1
Target            : {}
LinkType          :
Name              : Untitled1.ipynb
Length            : 555
DirectoryName     : C:\Users\bob
Directory         : C:\Users\bob
IsReadOnly        : False
Exists            : True
FullName          : C:\Users\bob\Untitled1.ipynb
Extension         : .ipynb
CreationTime      : 2020-07-13 9:41:01 PM
CreationTimeUtc   : 2020-07-14 3:41:01 AM
LastAccessTime    : 2020-07-24 8:31:23 PM
LastAccessTimeUtc : 2020-07-25 2:31:23 AM
LastWriteTime     : 2020-07-13 9:43:04 PM
LastWriteTimeUtc  : 2020-07-14 3:43:04 AM
Attributes        : Archive

get-childitem > directory.txt
write directory table to txt

notepad.exe .\directory.txt
open txt

copy-item .\directory.txt ..
copy txt to parent directory

move-item
remove-item

reference:
https://www.youtube.com/watch?v=vO0P3JuItcM

No comments:

Post a Comment