Wednesday, 11 January 2017

Powershell Script to check file exist or not ([IO.Directory])

if([IO.Directory]::Exists($DestinationPath1))
{
write-output "Destination folder exists"
}
else
{
$DestinationPath1= New-item -type directory D:\**\$(get-date -f dd.MM.yyyy)\ -ErrorAction SilentlyContinue                      
}

No comments:

Post a Comment

Git

1 git add ↳ It lets you add changes from the working directory into the staging area 2 git commit ↳ It lets you save a snapshot of currently...