In my article, Associate Extensionless Files with Notepad, I explain how to navigate the labyrinthine maze of Windows dialogue menus to assign Microsoft’s Notepad text editor as the opening application for files without extensions. In this post, I’ll show you how to associate any file type with any program (including Notepad) in less than five seconds.
Ready? Don’t blink, you’ll miss it.. ;)
Modify any file extension association in five seconds
Open the Windows command prompt and enter the following command:
assoc .extension=fileType
It’s that easy. What is happening here? Let’s break it down, just for fun:
assoc — Windows file-association command
.extension — the extension of the file for which you would like to associate
fileType — the type of file that you would like to associate with your extension
Continue Reading
Monitoring your computer’s Internet activity is a powerful tool, enabling you to:
- keep an eye on background processes
- reveal viruses and other malware
- expose unauthorized access
- monitor running programs
- log process activity
..and much more. The best part? It’s super-easy. Here’s how I do it on Windows XP:
- Open the command prompt and type “
netstat -n 5 > scan.txt”
- After a minute or two (or any amount of time), press
Ctrl+C to stop monitoring
- Type “
scan.txt” to open the log file and check the results
Continue Reading
Recently, I needed to find and replace all instances of “http://website” in the wp_comments table of the WordPress database. Fortunately, SQL provides a simple way to find and replace data with its wonderful UPDATE function.
General Example
Using the SQL UPDATE command is straightforward. Here is the general syntax:
UPDATE table_name SET field_name = replace( field_name, 'string_to_find', 'string_to_replace' ) ;
Simply replace the table_name and both instances of field_name with your specific information, and then edit string_to_find, and string_to_replace with the desired values. This is pretty standard stuff, but it is always a good idea to backup your database before executing commands. To run a “Find and Replace” via phpMyAdmin, simply login, select your database, and enter the command via the SQL tab. Copy, paste, and go!
Continue Reading
![[ Image: Screenshot of the MS Run Prompt ]](http://perishablepress.com/press/wp-content/images/2007/misc-chunks/run-command.gif)
Even with all the fancy-pants new features found in Windows XP and now Vista, Microsoft Windows 98 (Second Edition) remains our favorite Windows-flavored operating system. We love it so much, we still use it on one of our trusty laptops. Over the years, we have discovered several very useful functions available via the command line or even the “Run” prompt (Start → Run...). Anyway, without spending too much time researching or explaining these wonderful tools, we figured posting the information online may prove beneficial at some point in the future. So, without further ado, we present this working repository of helpful MS run commands:
Continue Reading
DOS (Disk Operation System) is a tool which allows you to control the operation of the IBM PC. DOS is software which was written to control hardware. Here is a summary of some essential DOS commands.
Continue Reading