Archive for the ‘DOS’ Category
How To Flush DNS
Written by techieDan on February 29, 2008 – 1:23 amPC hanged, can’t seem to load your MSN Messenger even after countless times of fixing it via the MSN help.
One way of checking for errors is by flushing your DNS. How can it be achieved. Simply by using DOS commands .. (yes.. DOS commands again) one can do that.
Why Flush Your DNS?
The bad DNS will have an incorrect IP & therefore one will fail to hit the right IP. By flushing your DNS, sometimes, DNS entry that are bad will be cached and you will need to either flush the DNS cache or restart your modem. So of course why would I need to restart it when one can flush it out.
How is this possible?
In command line prompt.
c:\> ipconfig /flushdns
Done!!! That’s all that is needed
Tags: command, dns, flush, ipconfig
Posted in DOS | 2 Comments »
Format PC in DOS
Written by techieDan on January 29, 2008 – 8:28 amDOS is one of the best way to format one’s PC. Just in case you don’t have a Windows XP cd or something which can help format your primary hard disk at C:\>, using DOS to format your PC is a very likely case.
Formating your PC is just as easy. Go to your command dos prompt and start typing.
C:\> format c:
Isn’t this easy? Well, this process might take a very long time and it does a long system format. But if you just don’t bother about it and wanted a quick formatting, just do this.
C:\> format c: /Q
The above will do a quick formating.
Added Note July 1st 2008 : In order to boot straight to DOS, remember to always save a copy of a Windows 98 Boot up Disk, just in case your Windows XP cd goes missing.
Posted in DOS | 2 Comments »
Copy Folders in DOS
Written by techieDan on January 25, 2008 – 7:59 amYour Windows OS (Operating System) is down. Dang… and you need a data seriously that you don’t want to bother installing another windows. So how do you do it. Yes, one can copy files using the DOS command.
Let’s say you’re in the command prompt c:\>
| C:\> copy *.* a: | (copies all file in the current folder you’re in into a: drive |
Now you wanted to copy multiple folders for backup purposes onto another folder. This is the way one should do
| C:\> xcopy foldername foldername | copies all the folders and files inside into another folder |
Now let’s say example from folder C:\>techiedan\ and all it’s subdirectories, I want to copy all this into another folder name C:\>blog\techiedan\.
| C:\> xcopy techiedan blog\techiedan /e | copies all the folders and files inside into another folder (use the /e for copying all folders and files) |
| use alternatively the /i if you have lots of folders so DOS won’t keep on asking whether content is a file or folder |

Now you know this, so with this knowledge, you can start writing a schedule or a batch file to run this script at certain period to backup your files. ![]()
Tags: copy, DOS, xcopy
Posted in DOS | No Comments »
