Is there anyway we can repeat powershell script once it end? i want to run this command and once it complete i want this command to run again. i don't want to use task scheduler.
gci . -Recurse -Directory | % { if(!(gci -Path $_.FullName)) {ri -Force -Recurse $_.FullName} }
i usually use while loop
while ($true) {
# do something
}
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments