Creating a list of File Names in a Directory in Command Prompt

To create a list of all the files in a certain directory is to open up cmd and type:

 cd /d "[the location the directory is]"
dir /b > "[location you want to save the .txt file].txt"

So For example I wanted to create a list of all the song names in my Metallica album “Master of Puppets” I would do:

 cd /d "D:\Music\Metallica\Master of Puppets"
dir /b > "D:\Master of Puppets.txt"

Which outputs:

 01 Battery.mp3
 02 Master of Puppets.mp3
 03 The Thing That Should Not Be.mp3
 04 Welcome Home (Sanitarium).mp3
 05 Disposable Heroes.mp3
 06 Leper Messiah.mp3
 07 Orion [Instrumental].mp3
 08 Damage, Inc.mp3 

If you want more information over the files like when they were created or size or a summary of the folder then do not use the “/b” when doing the dir command.
If you want to do more than one directory say, you wanted to create a list of all songs in the the entire metallica directory which contains all the albums then you could cd to the parent directory in this case it would be D:\Music\Metallica, and do dir /b /s > Metallica.txt.
The downside to doing this is that it will show the path of the files as well (that way you know which album the song belongs too. Which might not be what you want if your trying to keep a nice and clean log you could easily copy and paste from. In that case you would just be better off creating a .txt for each album individually.



Changing Login Screen on Windows 7

To change the background image go to Start> search for “regedit” (with out “”)> and click on “regedit.exe”

Inside Regedit follow the path bellow:


then right click on “OEMBackground” and select modify and make sure that “Value Data:” is 1. If not change it to that and hit Ok.
(if OEMBackground is not there then right click in the open space below “Default” and go to New>DWORD (32bit) Value”. Name it OEMBackground and give it a value of 1 and hit ok.)


Now go to:


(or C: can be replaced with whatever drive letter has Windows on it but generally that will be C:)


Copy and paste the .jpeg image you want into that folder and rename it “BackgroundDefault.jpg”

Now your done, next time you log out/log in you will have a new background image.


Note: Depending on who installed your Windows7 copy, so of these steps might not need to be done, but it is best to just do them all just incase. (Like for my Lenovo laptop, they had already changed the default background to a custom Lenovo background so all I had to do was switch out the image.)
Reference and thanks to:  Varun Kashyap for his post at

Restarting A Windows 7 Key

Any unlawful use of this tip is against the intentions of its poster, who can not or will not be held liable for any illegal use of this tip.

To restart a Windows 7 key:

Got to start -> type “command prompt” (without “”) -> right click on “Command Prompt” -> select “Run as Administrator” -> In Command prompt type

slmgr -rearm

and hit enter.

And that’s it. The key has been refereshed for 30 more days.

You can use this tip to up to 3 times before it will no longer work.

Blocking Ads in Windows Live Messenger

Windows Live Messenger uses the add site to show their ads. By changing the the ip address to a non existent site for this website, it will prevent the ads from showing in Windows Live Messenger.

To do this go to:


Right Click on “Hosts” > Open > choose “Notepad”

Scroll to the bottom of Host and add

right below the last line so it looks like

# localhost name resolution is handled within DNS itself.
#       localhost
#    ::1             localhost

Then save, close out of notepad, and restart msn.

And there you go no more ads! (Note, the box doesn’t go away just instead it show a generic windows live picture thats unclickable.)

Reference and Thanks to :

Save Desktop Icon Locations

I remote desktop into my desktop all the time from my laptop, unfortunately, my laptop having a different screen resolution causes the icons to change their position. So when I get back to my desktop, several Icons are in the wrong place. Desktop Restore is a program that adds shell extension to windows so that when you right click on the desktop you have the option to save how the current icons are set up, or restore them to a previous saved state.
Note: unfortunately this program is only for windows Icons, it does not include other Desktop preferences like Windows Gadget’s locations.



Rainmeter showing 100% on all CPU

Ok, so. My rainmeter plugin “Dark Rainmeter” (doesn’t matter which version) uses the Rainmeter plugin “perfmon.dll” to gather it’s info over the CPU (cores).

If your rainmeter shows “100%” for the CPU read but all other measures of the CPU( like task manager) shows a more reasonable range.

Try going to start > search “perfmon.exe” > enter

If a pop-up shows saying:

“Unable to add these counters:

\Memory\Available MBytes
\Memory\% Committed Bytes In Use
\Memory\Cache Faults/sec
\Memory\Cache Faults/sec
\PhysicalDisk(*)\%Idle Time
\PhysicalDisk(*)\Avg. Disk Queue Length
\Network Interface(*)\Bytes Total/sec””

Then go to start > search “cmd” > right click > run as administrator:

Then type lodctr /r and press enter.

You should receive a message that says “Info: Successfully rebuilt performance counter setting from system backup store

At this point, my problem was fixed. PerfMon.exe was able to start with no prompt, and my rainmeter plugin would perfectly. But to make sure everything is working,

Then type lodctr /q and press enter. This will show all the providers and whether they are enabled or not. (scroll through and make sure all say “(Enabled)”

If it says (Disabled) next to a provider, you can enable it with lodctr /e:<provider name>. Use for <provider name> the string between the [ ] at the beginning  of the entry.


Thank you ProGas for this solution