Category Archives: Software

Windows Deleting File – Could Not Find This Item Error

So I was trying to delete a folder on my desktop but received some strange errors.

It was like the folder did not exist, but I could still see it and it prevented me from deleting it.

I got the following errors when trying to delete the folder:

  • Could not find this item
  • Error 0x80004005:Unspecified error

Btw. I am sitting on a Windows 10 machine, but I bet this also works for Windows 7, 8, 8.1 and so on.

Thankfully after trying some different workarounds, I found the one that worked for me. That is not to say it gonna work for you, but after trying several it might do…

Solution

I opened CMD (command prompt) in admin mode and found the folder/directory with the CD command.

Then I typed “dir /x” to get the 8.3 format of the folder. I renamed the folder with the REN command, and the folder was renamed. After this I exited CMD and deleted the folder manually. You could probably also use the DEL command after renaming the folder.

Step by step

  • Open CMD in admin
  • Navigate to the folder with CD command
  • Use dir /x to find the 8.3 format (example: FOLDER~1)
  • Ren <8.3foldername> <new shorter foldername>”

How To Integrate non-WordPress pages in WordPress and Avoid 404 Errors

So  you want to use your old PHP files, but with your WordPress installation/theme. So the Codex tells you that this can be done, and you just have to include the following in your PHP files:

<?php
/* Short and sweet */
define('WP_USE_THEMES', false);
require('./wp-blog-header.php');
?>

This would make it possible to use all the WordPress functions and include the header, footer, widget area etc. When tested with Chrome developer tools, I noticed that it returned a 404 File not found in the headers. Fortunately I came across the solution from a link on the same Codex page, instead of the above code, use the following:

<?php
define('WP_USE_THEMES', false);
require('p/wp-config.php');
$wp->init();
$wp->parse_request();
$wp->query_posts();
$wp->register_globals();
$wp->send_headers();
?>

This should return a 200 Status OK header instead and everything should be okay.

To include the header and footer you can use the following code/method:

<?php
define('WP_USE_THEMES', false);
require('p/wp-config.php');
$wp->init();
$wp->parse_request();
$wp->query_posts();
$wp->register_globals();
$wp->send_headers();
get_header();
?>
The content goes here...
<?php get_sidebar(); ?>
<?php get_footer(); ?>

That should do the work :)

Windows 7 Completing Installation Stuck (Solution / Fix )

I was installing Windows 7 on my laptop the other day. It kept freezing at “Completing installation”.

After some Google research, I found the solution, which was pretty simple:

I was installing from a USB Drive, the solution was just to unplug the USB Drive.

So, if you have any USB devices plugged in during installation and system boot, make sure nothing is connected until you have a full boot into Windows 7.  After you are in Windows, you can plug them in again and Windows will install the necessary drivers.

Hope it works :-)

SimCity 5 Sandbox PC Cheat Codes

To use cheats in Sim City 5, you must play in a Sandbox region.

Use the following commands while in-game:

ALT+W - Add §100,000 to City Budget
ALT+F - Toggle Fire On/Off
ALT+C - Toggle Crime On/Off
ALT+M - Toggle Health Issues On/Off
ALT+A - Toggle Air Pollution On/Off
ALT+P - Toggle Ground Pollution On/Off
ALT+H - Toggle Homeless Sims On/Off
ALT+S - Toggle Sewage On/Off

Pressing CTRL-SHIFT-C no longer shows cheats.

Windows 7 – How To Move The 100MB Partition Reserved For Sytem Boot

You installed a new version of Windows 7, just to discover that Windows made a 100MB partition on your old harddisk, so now you can’t boot without this harddisk….

I was looking for a solution to this, most solutions suggested to delete the partition and un-plug the old HD and then using the Windows CD to make a new system partition.

Well, I found a better solution and it worked out just fine.

If you want to keep a special partition for your boot files, start by making a 100MB partition on your C: drive (assuming Windows is installed here).

It is recommended to make a backup of your harddisk before following the next steps.

Now follow these steps, remember to use the correct disk and volumes.

  1. Click the Start button, then in the “Start Search” box, type “CMD” but do not press Enter yet.
  2. In the list above the search box, under “Programs”, right-click on CMD and choose “Run as Administrator” and click “Continue”.
  3. In the open console, type the following commands and press Enter:
    diskpart
    select disk 0 \\I assume that the 100MB partition is in Disk 0
    list vol
    select volume 0 \\I assume that the 100MB partition is installed in "volume 0"
    inactive
    select volume 1 \\I assume that the OS is in "volume 1"
    active
    exit
  4. Type in CMD (still in administrator mode):
    C:\windows\system32\bcdboot.exe C:\windows /s C:

It should prompts that the command line is successfully. Restart the computer. The boot files should now have been moved from the old HD to the new one.

Note: if you put the boot files to a new partition, remember to set your OS volume to active again.