Recently, when I had to do some tasks on a Windows machine, I thought of trying out the Powershell. I had to process every file in a directory. In linux, I could easily do it on the command line so I tried to find out similar way for Windows. It turned out to be fairly simple actually.
$files=get-childitem .
foreach ($file in $files) { echo $file.fullname }
No comments:
Post a Comment