Windows XP – Batch file script to copy all files

This is a small script I use to copy file quickly from source to destination. This script should work under Windows XP, 2000, 2003, 98/95 etc.

Syntax
Script accept two command line argument as follows:
mycopy.bat {source} {destination}

Where,
mycopy.bat – This script copies files and directories, including subdirectories using Windows xcopy program. You must pass following two arguments/parameters
source – Use to specify the location and names of the file/directory you want to copy.
destination – Use to specify the destination of the files you want to copy.

How do I use this script?

For example copy all *.doc file from C:\DATA to \\SERVER\BACKUP directory, you need to execute script as follows:
Cd c:\data

mycopy.bat *.doc \\SERVER\BACKUP

OR copy all files from c:\data to z:\

mycopy.bat c:\data\** z:\

mycopy.bat source code

@rem BATCH FILE
@echo off
if "%1" == "" goto error1
if "%2" == "" goto error2
@rem * Copy from source to destination including subdirs and hidden
@rem * File
xcopy "%1" "%2" /S /E /H
goto endofprogram
:error1
echo You must provide source
echo Syntax:
echo %0 source destination
goto endofprogram
:error2
echo You must provide destination
echo Syntax:
echo %0 source destination
goto endofprogram
:endofprogram

Where,

  • Line # 03 and 04 make sure we pass the command line argument.
  • Line # 08 – If both command line arguments (source and destination) are provided it will copy files using XCOPY program.

Howto: set transparent windows under Windows 2000 or XP for any program

This is cool little application for Windows 2000 and XP desktop system. It allows you to set transparent windows of any program running in Windows 2000 or XP. However, this program does not currently work for Windows 98 and below.

The ability to set transparent windows can allow you to be more productive with numerous windows open at once, even on a smaller display.

ChaosCrystal screenshot

I have enjoyed something like this with both UNIX and Linux desktop systems.

Download ChaosCrystal at elgorithms.com

Permanently remove or erase data from CD and DVD

So you want to remove or erase data from CD and DVD… Here is new DVD/CD combo, which destroys the all data stored on DVD/CD.

PlexEraser is a data destruction utility that makes a recorded CD-R or DVD disc unreadable. The drive will “re-record” over the Lead-in and data sectors of a write once disc rendering the disc data unusable. Initially this feature will support DVD+/-R and CD-R media. Firmware upgrades will add support for DVD+/-R DL media. This utility is available with PX-760A/PX-760SA.internal DVD-ReWriter drives.

PlexEraser picture

But hold on Plextor will soon roll out new DVD/CD combo called PLEXERASER. As a name suggests it, destroy the data (it will only take 6 minutes to completely erase data).

Found via

The top five engineering hints you’ll important to successful product engineering

Lewin Edwards presents five engineering tips that are crucially important to successful product engineering, but which are rarely brought up in discussions of engineering practices.

The Internet has exactly one and a half zillion articles (I counted them) containing lists of things to do and not to do in embedded systems design. Many of these articles focus on well-understood topics like switch debouncing and how to estimate maximum stack depth. Dozens of these articles quote our old favorites in terms of embedded disasters: Therac, Ariane, and the Mars Polar Lander. This article gives you a few choice tidbits of advice you won’t find mentioned quite so frequently in other places. It also includes some anecdotes that will show you just how easily your work life can turn into the inspiration for a Dilbert cartoon if you’re not careful.

Read more at IBM developerworks

Scientist thinks invisibility possible in future

Scientist thinks invisibility possible in future …

According to Dr Ulf Leonhardt, a theoretical physicist at St Andrews University in Scotland, Invisibility is an optical illusion that the object or person is not there. Leonhardt uses the example of water circling around a stone. The water flows in, swirls around the stone and then leaves as if nothing was there.

If you replace the water with light then you would not see that there was something present because the light is guided around the person or object. You would see the light coming from the scenery behind as if there was nothing in front,” he said.

Read more at reuters.

Howto: Windows vista recover a file accidentally lost or changed

Windows vista uses Windows 2003 kind of versioning file system. This allows you to roll back or get previous version of a file.

This feature is known as Previous Versions based on the Volume Shadow Copy technology which was first introduced with the Windows Server product family.

So what is unique about Previous Version feature?

The Previous Version feature lets you quickly recover a file you accidentally lost or changed.

For example you are working on a large project report and accidenly you overwrite few pages or changed entire report formatting, vista’s previous version feature lets you quickly recover a file you accidentally lost or changed. This feature automatically creates point-in-time copies of files as you work, so you can quickly and easily retrieve versions of a document you may have accidentally deleted.

You can read more about Previous Version feature at Micrsoft vista blog.

Windows vista Previous Versions

However, there are some growing concerns about user privacy. I think this a nice feature for home user and it can be turn off too. Most home users or small business owners do not use dedicated file servers and snapshot applications. Therefore, this utility offers nice backup feature w/o paying for third party utility such as Norton Goback.

Howto: Keep wordpress blog private from search engines

Wordpress logo

Recently I did setup a blog site for corporate client. This blog is only for company employees, its dealers/retailers business partners and other people related to core business. This blog is immediately pickup by both Google and Yahoo search engines.

They send me new request to remove blog from Google and Yahoo!. LOL, which is beyond my control. Anyway, I found a Google webpage that remove indexed data.

Next, I put entire blog in password-protected directory and I am working on wordpress plugin that will allow only authenticated user to see blog entries.

To be frank, blogs are available on the Internet exactly like other webpages. The only way to keep any blog (including wordpress, blogger.com and other all blog software) hosted on your own server is to put in password protected directory from both Search engine and guest users.

So how do I put wordpress blog in a password protected directory?

I have already wrote about how to password protect directory using Apache and Lighttpd webserver. Please follow instructions as given on these two urls.