tag:blogger.com,1999:blog-8903006743421146366.post2088505280459235621..comments2022-03-27T07:53:45.821-07:00Comments on PauerSchell: A Problem with Remove-Item $folder -recurse -forceBernd Krisziohttp://www.blogger.com/profile/03294997372899922987noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-8903006743421146366.post-3977497232597260432012-10-07T11:38:44.832-07:002012-10-07T11:38:44.832-07:00I noticed that problem when I delete a file. I fix...I noticed that problem when I delete a file. I fixed it as you can see in the code below:<br /><br /> $myitem = $file.FullName<br /> Remove-Item "$myitem"<br />Anonymoushttps://www.blogger.com/profile/01249345237291857911noreply@blogger.comtag:blogger.com,1999:blog-8903006743421146366.post-1579556565369904602012-07-12T03:19:10.034-07:002012-07-12T03:19:10.034-07:00I've noticed that it won't work using the ...I've noticed that it won't work using the ISE but it will work if you type it in on the PS Command Line - weird!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8903006743421146366.post-47987296570763382132011-02-08T17:59:37.475-08:002011-02-08T17:59:37.475-08:00Btw, here's how I'm doing it:
cmd /c "...Btw, here's how I'm doing it:<br />cmd /c "rd /s /q $dir_name"<br /><br />After working with Bash, TCL, Ruby and Korn I'm realizing that Powershell is a piece of crap.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8903006743421146366.post-69764797927741666002011-02-08T17:35:47.988-08:002011-02-08T17:35:47.988-08:00Hey,
I'm having the same problem... Also runn...Hey,<br /><br />I'm having the same problem... Also running Windows7 32bit...<br />Did you find a different way to recursively delete a directory?<br /><br />Thanks,<br />TiberiuAnonymousnoreply@blogger.com