Windows Powershell

From rbachwiki
Revision as of 14:35, 31 March 2020 by Bacchas (talk | contribs) (Created page with "<pre> $datecurrent = get-date -Format MM-dd-yyyy $apath = "C:\Users\Robert\Desktop\leaves" $btest = "C:\Users\Robert\Desktop\leaves\pdf-sliced" $ctest = "C:\Users\Robert\Deskt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
$datecurrent = get-date -Format MM-dd-yyyy
$apath = "C:\Users\Robert\Desktop\leaves"
$btest = "C:\Users\Robert\Desktop\leaves\pdf-sliced"
$ctest = "C:\Users\Robert\Desktop\leaves\atest"

#create directory
New-Item -ItemType directory -Path "$ctest\$datecurrent"

#open folder
ii "$ctest\$datecurrent"

#copy files
Copy-Item -Path $btest\* -Destination "$ctest\$datecurrent" -Verbose


Category