development – digital arts – internet
Knowledge is free. No one may take possession of it.
14. March 2013
Recently I have been confronted with a very annoying bug Windows bug, when working with Aptana Studio on Windows. For some reason the system has frozen when I wanted to create a backup by copying some files and the program created a very, very deep folder structure. It took me some time to realize this. At this time the folder structure was probably nested thousands of times. When you try to delete this folder structure on Windows it is not possibly, there have been errors like folder structure not empty. So I was searching for hours on the Internet for a program to remove this folder structure (Aptana which caused the error was freezing when I tried to remove it). Not even one single programs promising to solve this problem did work, which was quite annoying. After some time I found a little blog (forgot the name unfortunatly), which recommended to write a custom script - I did this and the problem was solved in less than 5 minutes. If you have a problem like that, just do the following:
1. Create an empty stack file (.bat), name it like remove_me.bat
2. Insert the following contents:
ren "C:\xampp\htdocs\abc\local\wp-content\themes\abc\remove_me\folder_1" x move "C:\xampp\htdocs\abc\local\wp-content\themes\abc\remove_me\x\folder_2\folder_1" "C:\xampp\htdocs\abc\local\wp-content\themes\abc\remove_me\" rd "C:\xampp\htdocs\abc\local\wp-content\themes\abc\remove_me\x" /s /q