Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 03, 2015, 02:13:23 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Remove folder  (Read 3304 times)

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
Remove folder
« on: June 16, 2009, 02:17:19 AM »
Hi

This tiny Python script utility is using Gnu rm.exe to forcefully and peacefully removes folders. I think it works better than windows delete. It will popup a window where you put the path to intended delete folder. For now it does only one folder(recursively) at a time. I made this utility because I was sick of waiting for Window`s delete to figure out what to delete.

http://shup.com/Shup/173115/FolderRemove.zip

Use it on your own risk. I use it here happily :)
« Last Edit: June 16, 2009, 09:52:20 PM by kartal »

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 8,858
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Donate to Member
Re: Remove folder
« Reply #1 on: June 16, 2009, 07:43:51 AM »
Why depend on an external tool instead of coding the removal routine in Python? And when using an external tool, why depend on gnu rm instead of Windows' built-in RMDIR /S ?
- carpe noctem

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
Re: Remove folder
« Reply #2 on: June 16, 2009, 09:51:18 AM »
Why depend on an external tool instead of coding the removal routine in Python? And when using an external tool, why depend on gnu rm instead of Windows' built-in RMDIR /S ?

Well because it was easier to just use Gnu tool rather than trying to write my own recursive Python folder deletetion. I was just trying to get something going asap.

I just like the Gnu rm`s options and I use other Gnu Core Utils here as well, so it was just a personal taste.

I will just make one version with RMDIR instead later today.



kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
Re: Remove folder
« Reply #3 on: June 16, 2009, 01:16:05 PM »
I just tried using "rmdir" inside my script, I could not get it to work. I think it is because Popen does not pass rmdir as a command. Since I do not use it myself I wont dwell around it much really.



edit: I fixed the issue, it was a shell issue. Here is the windows version but it does not have any verbose mode.

http://shup.com/Shup/172957/FolderRemove_windows.zip
« Last Edit: June 16, 2009, 01:28:08 PM by kartal »