Learn about XCOPY, command prompt, backup, method, procedure, Windows, BASIC, program, software, batch file, source code, DOS.

XCOPY Command: The Best Backup Procedure, Method, Software in Windows

Using the XCOPY command of Command Prompt, we can create the best and easiest method to backup often-modified directories (folders) and files.

Authored by Ion Saliu on April 5, 2011; later updates

• Backup Software ~ version 2.0 ~ April 7, 2011 ~ free-to-run backup software.

Download a BASIC program and a batch file to run the best ways to backup your files, folders, directories.

Here is the situation. You install or uninstall a piece of terrible software. Next thing you know, your computer is no longer functional! It happened to me after installing and finally uninstalling a bad piece of software from a terrible software company: PC Tools. I faced the daunting task of reinstalling Windows! What a nightmare — for I also had to reinstall plenty of software applications! You don't want to hear from me the choice of words of that time...

I learned the lesson that I had neglected. I went to Walmart and bought an external hard drive to serve me as a backup device. Just US$50-80 for ingenious peace of mind!

Windows has a very good feature: Create a system image (in Control Panel, System and Security, Backup and Restore). It will be much easier to deal with a nightmarish situation like the one I had with PC Tools. I just restore the most recent system image. I don't have to reinstall Windows and software (except for programs not included in the latest system image backup). I always create a system image soon after I installed new software or updated software on my PC.

Windows backup situations: Best software to handle backing up important files.

Here is another situation. Like many, I create, add, edit, modify plenty of files. I swear, we must backup the most dynamic directories (folders) on our computers. Many invoke the need to backup in a religious-like manner! The Ancient Greeks had a god for everything. If they still had been around, they would have designated a god of computers as well. Possible name: Bitser. The bits are far more important than the thieves, or merchants, or sailors, or warriors, or Olympus adulterers ...

But that's one of my biggest complaints about Windows — Backup. The backup facility in Windows has been a source of complaining from the very beginning. For starters, it is not flexible. I have to accept what Windows decides to backup. Then, if I need just one file in the backup, I have to do a full restore. Then, hunt for the file I need!

That was the second situation I was referring to. I dramatically upgraded my Bright*.exe software. No surprise, the overhaul was accompanied by quite a few errors. Fortunately, I did the backup my way. I had older source code files on various media. I knew exactly what BAS files I needed and where they were located. It was as easy as opening in the compiler both program versions ... then copy-and-paste.

Last time I used Windows Backup was in 1995. After that, I have always used my backup methods. All had in common the XCOPY command, which lies at the foundation of the Command Prompt. Windows Explorer uses a water-down version of XCOPY. You'll never be able to do in Windows Explorer what you can do with XCOPY at the Command Prompt.

And here is the third situation. It relates to users of my software. Some really bother me by asking me to email or even snail-mail them pieces of my software. The reason: The computer-crash clichι! Their computers crashed and they lost programs and data — and the users did not have backups. Well, such situation (because of the requests) bothers me — and it must stop once and for all!

For I created a special program to backup everything that's important on a user's PC. I created also a batch file to do the same. This is the best and easiest procedure of backing up files: XCOPY. The command has a plethora of options (via switches on the command line). I only applied a few switches; e.g.:

XCOPY C:\BAS\*.bas J:\BAS\*.bas /S /D /I /Y
XCOPY "C:\My Web Pages\*.*" "J:\My Web Pages\*.*" /S /D /I /Y
XCOPY "C:\DOCUMENTS" "J:\DOCUMENTS" /S /D /I /Y
...
PAUSE

The /D option (switch) is the keystone of easy backup via the XCOPY command. If the files do not exist, they are copied to the Destination. If the files are modified on the Source, they will replace the older files on the Destination. If no files were modified on the Source, XCOPY fires this benign message: 0 files copied.

Let's take a look at the menus of my backup software:

The best software to backup your computer files easily.

The menu suits my needs. That's how I backup the most important folders and files. If a folder did not exist on the Destination (the drive that hosts the backup), then one is created; all the files on Source are copied to the Destination. If the folder exists on the Destination, then only the modified files will be copied (replaced or updated). To avoid the Invalid number of parameters error of XCOPY, the software surrounds directory names by quotation marks, in case the directory name contains blank spaces.

As I said, this piece of backup software suits my needs. To suit other people's needs, I also make public the source code of the program: XC.BAS. Well, it can only serve the programmers! The BASIC source code can be converted to any language even by programming beginners. I even make public a batch file, which is much easier to edit even by non-programmers: BKUP.BAT.

XCOPY Command: Best Backup Method, Software in Windows.

Unfortunately, the 64-bit Windows doesn't allow a command like WAITS, as in the Pick*.exe or Bright*.exe for 32-bit operating systems. The batch file commands PAUSE or CHOICE are lowly functional, unfortunately.

The advantage of BKUP.BAT is scheduling. You can schedule the automatic running of my backup batch file. You do that via the Task Scheduler in Windows. Choose a day and time when you can surf the Internet, for example, while BKUP.BAT backs up your files in the background.

I added one function to XC.EXE thinking of the bluntest non-programming computer users:

Using the XCOPY command of Command Prompt, create the easiest method to backup modified directories (folders) and files.

The user can select the folder to backup, one by one. Maximum attention is required! Windows file names or folder names are case-insensitive. But more than one blank space triggers errors — the program will terminate. The same is true regarding the BKUP.BAT. As a non-programmer, take your time when adding backup folders. The good news is that you don't have to add files manually — the entire folder will be backed up.

You can download XC.exe and BKUP.BAT directly to the root directory (e.g. C:\). You don't even need to go to the Command Prompt. You can open Windows Explorer and (double-)click on XC.exe (or BKUP.BAT). Even easier: Create a shortcut on your desktop. Right-click XC.exe, then select Send To, then Desktop (Create Shortcut). You might want to right-click the shortcut icon, then choose Rename. Rename it something like MyBackup.

There is a great advantage for programmers, of course. They can edit XC.BAS to their hearts' delight. There are three additional menu screens, and lots more can be easily created.

Windows 7 has a great feature. Even an average computer user can copy files and folders to a CD/DVD — without the cumbersome Burn step. Also, XCOPY copies files directly to CD/DVD from the command prompt.

I easily created a secondary backup to a DVD. It took around 15 minutes to transfer over 2 GB of data from my hard drive to the DVD. Compare that to the inflexible and slow built-in backup service of Windows.

Unfortunately, copying to a CD/DVD is not as complete as working with magnetic media (e.g. hard drives). This backup will always copy all files and folders to DVD — instead of only updating the modified/added files and folders.

I was appalled in the 1980's and 1990's. I saw advertising for expensive backup software. What for? XCOPY was there, since DOS, and well preserved in Windows. There were also the batch processor and capable programming platforms (GWBASIC, QBasic). Yet, millions of computer users paid serious money for backup software! No. I ain't a fool ... By the way — all those ads for backup software are defunct now. It's not only because Microsoft followed their notorious practice of “killing” competitors. I believe it's so primarily because more and more computer users have wised up ...

It is so easy – and free – to backup important files and folders on a computer.

If you are a registered member to download the SALIU.COM software, go directly here:

The applications are also absolutely free for any visitor reading this:

You know, there is well-paying backup advertising on my Web site! Alas! You might never need any of that! Not even online backup (while paying some hundreds of dollars a year in subscription fees)! Just buy an 80 dollar external hard drive, 500GB in capacity. 90% of computer entities (companies included please) will not run out of room any time soon. If capacity is exceeded — buy another 80 dollar external hard drive, 500GB in capacity … and another one … perhaps? Did I mention that in-house is millions of times safer than online? Privacy, anyone?

The online backup (the euphemistic cloud-computing of these days) claims better safety. The cloud backup firms claim they are safer than a home or a company building as far as disasters are concerned. Human disasters: fire or flooding; natural disasters: earthquakes, flooding, hurricanes, etc. Everybody is equally prone to disasters. Furthermore, what's a backup worth if the owner is killed in an earthquake?!

As Microsoft puts it so eloquently in their Terms of Service, if you use the cloud backup you must always have … another backup … at home!

Besides, online backup is out of question when recovery system images are at stakes. You can't afford to transfer over the Internet hundreds of gigabytes of data! Mission impossible!!

Backup, backup! Wise me up!

Related material:

Millions of computers users wised up: They do backup – for free now!

Subject:

Comments:

Site of software galore, including freeware. Socrates Home  Search Web on software. Search Site  Forums for software, ideas, theories. New Writings, Pages  Links to software, lottery, gambling, plus systems. Sitemap, Content  

Exit the best site of software downloads for a multitude of tasks, including Windows backup.