14. March 2013
von Blackbam
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

3. Adjust the paths to your needs

Of course you have to adjust the path to your system for this script to work

4. Just click the file and you can see a command prompt window which shows deletion of the folders

5. Close the window if you see a lot of error messages

This means all folders are deleted and the script cannot delete any more.   Explanation: The script creates an endless loop. It will rename the the endless folders (line 1),  fetch the a folder from two levels below, and move it to the current level  (line 2) and remove the two directories which can be deleted now (line 3).

Warning: Undefined variable $time_since in /home/.sites/609/site1266/web/blackbams-blog/wp-content/themes/SilentWoodsByBlackbam/single.php on line 42 Dieser Eintrag wurde am 14. March 2013 um 22:22 in der Kategorie Allgemein veröffentlicht. You can book the comments for this article RSS 2.0. Feedback, discussion, commendation and critics are welcome: Write a comment or trackback.

Fatal error: Uncaught Error: Undefined constant "Ext_related_links" in /home/.sites/609/site1266/web/blackbams-blog/wp-content/themes/SilentWoodsByBlackbam/single.php:75 Stack trace: #0 /home/.sites/609/site1266/web/blackbams-blog/wp-includes/template-loader.php(106): include() #1 /home/.sites/609/site1266/web/blackbams-blog/wp-blog-header.php(19): require_once('/home/.sites/60...') #2 /home/.sites/609/site1266/web/blackbams-blog/index.php(17): require('/home/.sites/60...') #3 {main} thrown in /home/.sites/609/site1266/web/blackbams-blog/wp-content/themes/SilentWoodsByBlackbam/single.php on line 75 internal_server_error <![CDATA[WordPress &rsaquo; Error]]> 500