July 8, 2008

Hibernation – The Positive Effects

Some of you may know about hibernation techniques in Windows, but let’s take a look at the positive effects of using hibernation in your computer's life. You might know that each hard drive has an optimal life of some thousands of hours and each time we restart our computers, the hard drive gets exhausted. The hard drive dies down a bit each time, because although the PC manufacturing industry has developed greatly, hard drives are still pure hardware parts, which means they do all of the physical work in our computers.

Hard drives consist of several layers. Some of the layers have sensors and data finders and upon restarting your computer, these layers are involved in checking the boot sectors and hard drive surfaces in order to find important necessary data to run all of your Windows files. This is exactly the process you see after your restart your computer each time. You certainly have seen that even in its best shape, it takes some seconds and in some cases, nearly a minute before you can see your desktop picture.

The harmful effects of continuous restarting of your computer is not only limited to the time it takes before your Windows programs load, but it’s the matter of continuous cooling and heating of the hard drive, the CPU (central processing unit) and the graphic card fan. The ups and downs of these parts make your computer's life shorter.

Now, hibernation has introduced a remedy and a short cut. Instead of completely turning off the computer and disconnecting the power, hibernation saves all of your current information on a hard disk. Upon restarting, the desktop and computer return to the exact phase they were in before you placed your computer into hibernation.

This basically means you are saving battery power and lengthening you hard drive's life, as well as, other physical parts that normally have cooling systems like graphic cards. If you compare the seconds it takes to hibernate and restart from hibernation to those of normal turning on/off, you’ll see hibernation is great for computer maintenance. Hibernation is specifically great for laptop users, because you can save your valuable battery power far more.

Think of hibernation as taking a fast snapshot of everything present on your desktop and then printing them in a matter of seconds. Please note that if you decide to use hibernation for the rest of your PC’s life, you can ensure that you have considerably added time to your hard drive and the battery life of your computer.

Of course, there are certain times when we just have to restart our computers normally, like after installing new software that requires restarting, but for other times, hibernation is the power and time saving friend.

I'm sure this situation has come up for you as well. For example, you are very busy browsing the Internet and have opened several pages and folders on your desktop. You're also listening to your favorite music when a sudden family matter requires you to leave home for a couple of hours. Now, what a headache! If you turn off your computer and then restart it later, you’ve lost all the work you have already completed. This is a time when hibernation comes in handy so you can save your work. It will also save you time down the road.

In case you don't already know how to hibernate your PC, here is a quick lesson.

If your keyboard has sleep button, you can assign a hibernation command to it by clicking on Start, Control Panel, Power Options and choosing the Advanced tab. overnight propecia (XP users have to go to Start, Control Panel, Performance and Maintenance and then choose Power Options).

Once in the Advanced tab, look down to where it says “When I press the sleep button on my computer” and choose Hibernate from the pull down menu.

The other way you can go into hibernation is by pressing Ctrl+Alt+Delete to open the Windows task manager. From the top menu, click on Shut Down and select Hibernate.

Permalink • Print • Comment

July 6, 2008

Environment Variables in Windows XP

Environment Variables in Windows XP
Environment variables are specially named aliases or placeholders for certain basic system properties that are present for convenience in programming and in system administration. Although they are mostly of interest to technical people, some can be useful to the average PC user and these are discussed here.

Environment variables have long been used in computer operating systems and are present in Unix, DOS, and Windows The word "environment" used in the context here refers to various features of the computer system and certain basic system data. Here is one of Microsoft's definitions:

Environment variables are strings that contain information such as drive, path, or file name. They control the behavior of various programs. For example, the TEMP environment variable specifies the location in which programs place temporary files.

Values for some of these variables are established at login and these are sometimes called predefined variables. They include such parameters as the path and the name of the current user. A table of some of the more useful variables is given below. I have omitted some of the more technical ones. A more complete list is at this Microsoft reference. The variables are enclosed by percent signs when used in scripts or the command line, as is shown in the table. Although the variables are shown in upper case, they are not case-sensitive. More details are given about some of them in subsequent sections.

(To conform to much of the literature on environment variables, I will be using the term "directories" instead of "folders" in the discussion.)

Variable Typical value (May vary, depending on system)
%ALLUSERSPROFILE% C:\Documents and Settings\All Users
%APPDATA% C:\Documents and Settings\{username}\Application Data
%COMPUTERNAME% {computername}
%COMSPEC% C:\Windows\System32\cmd.exe
%HOMEDRIVE% C:
%HOMEPATH% \Documents and Settings\{username}
%PATH% C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem
%PATHEXT% .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS ; .WSF; .WSH
%PROGRAMFILES% Directory containing program files, usually C:\Program Files
%PROMPT% Code for current command prompt format. Code is usually $P$G
%SYSTEMDRIVE% The drive containing the Windows XP root directory, usually C:
%SYSTEMROOT% The Windows XP root directory, usually C:\Windows
%TEMP% and %TMP% C:\DOCUME~1\{username}\LOCALS~1\Temp
%USERNAME% {username}
%USERPROFILE% C:\Documents and Settings\{username}
%WINDIR% C:\Windows

The so-called predefined variables are generally unchanged during a login session but there are also some dynamic variables whose value may change. Some of these are listed in the next table.

Variable Value
%DATE% Current date in the format determined by the Date command
%TIME% Current time in the format determined by the Time command
%CD% Current directory with its full path
%ERRORLEVEL% Number defining exit status of a previous command or program
%RANDOM% Random number between 0 and 32767

Environment variables are very convenient in scripts where certain standard directories and parameters need to be referenced but where the actual locations or names can vary from computer to computer.(Note that the presence of spaces in some names may necessitate the use of enclosing quotation marks around environment variables in scripts.) By having a placeholder, no prior knowledge is required of such details as the exact location of Windows or who is logged in. Some possibilities are explored in the following sections.

The PATH Environment Variable

The path to a file is basically its address on the computer. It tells programs how to find a file. It is the drive plus any directories and sub-directories where the file is located. The %PATH% environment variable specifies the command search path. Typically, this is a group of directories where executable files that are repeatedly used are to be found. Examples of the default values are listed in the first table above; in this case, they are the Windows directory and two of its important system sub-directories. To see what is in the PATH variable on a computer, open a command window and enter "echo %PATH%".

The PATH variable is not immutable and programs like Norton SystemWorks will stick themselves into PATH when they are installed. The PC user can also modify the contents using methods discussed further on. Adding directories to PATH can be very useful if you use scripts or the command line for system maintenance. For example, it can be convenient to put the directory where you keep backups into the PATH variable. It can also be useful to modify PATH if you put programs in a directory different from the usual one.

In the command line and in batch files, PATH can be modified by the command path = dir1;dir2;dir3 This command will create a PATH environment variable consisting of the three directories dir1, dir2, and dir3. Note that the directory names are separated by a semicolon in the command statement. (An alternate form omits the "equals" sign.) This command will replace any previous directories that were in the PATH variable. To add a directory "newdir" to the current path use the statement path = %PATH%;newdir

It is essential to remember that any changes that are made in a command window only endure until the window is closed. For permanent changes, use the method discussed in another section. It is also possible to use the command-line executable setx.exe that is contained in the Windows XP Service Pack 2 Support Tools.

Any file that is in a directory listed in the PATH variable can be found or opened by direct reference to the name of the file without having to specify the drive and directories where it is located. This is very handy in scripting and in other ways. For instance, the name of an executable file that is in a directory listed in the PATH variable can be entered into Start-Run to open certain applications (more on this subject here). An example is the executable file for the classic version of the game Solitaire that is generally in the system folder C:\Windows\System32\. The file is sol.exe and its full address with complete path is C:\Windows\System32\sol.exe. Normally this entire string would have to be used in order to reference the Solitaire game. Because its directory is listed in the PATH variable, however, it is sufficient to reference just the file name sol.exe. In fact, because of another environment variable PATHEXT discussed next, simply entering sol into Start-Run is sufficient to open the solitaire game.

The PATHEXT Variable

As is explained on other pages, file extensions tell Windows what it is supposed to do with a file. Certain file extensions indicate that the file is executable; that is, the file opens a program or does something. The %PATHEXT% environment variable contains executable file extensions that do not have to be specified for any file in a directory given in the %PATH% variable. The extension .EXE is the most common. Thus the filename sol.exe need only be entered as sol in a command line. If files have the same name but different extensions, the operating system searches in the following order of precedence: .EXE, .COM, .BAT, and .CMD.

Adding or Editing Environment Variables

Existing variables can be edited or deleted and new ones can be added in several ways. For temporary changes, the command " Set" can be used in scripts or in a command window. An example is shown below: set temp=C:\tempHere, the %TEMP% directory has been changed from the default value. Note that the there must be no spaces on either side of the "equals" sign. Changes made with "Set" disappear when the command window is closed, thus rendering this method fairly uninteresting for the average PC user. A more useful application of "Set" is to list the environment variables. Open a command window and enter "set" to see what the variables are on your system. Those who wish can consult this Microsoft article for more details about "Set".

A more permanent way to manage environment variables is provided in  the System Properties dialog box. Open Control Panel-Performance and Maintenance-System (or right-click on My Computer and choose "Properties"). In the box that opens, ordering propecia online click the "Advanced" tab to obtain the dialog box shown below. Next, click the button "Environment Variables".

The figure below shows the "Environment Variables" dialog box that opens next. It lists two kinds of variable- those that apply only to the current user and those that apply to the whole system. You can simply scroll down the lists to see what is on your system or you can edit the lists. Note that I have created a user variable %BACKUP% that gives the path to my one of my backup directories. That makes it easier for me to write a backup script since all I have to do is enter %BACKUP% whenever I want to refer to this directory. To create a new variable, use the "New" button. There are also buttons for editing and for deleting variables.

The box for adding a new user variable is shown below. Generally, this is likely to be a directory that you use frequently but can be any string of less than 8192 bytes. The maximum total size for all environment variables, including variable names and the "equals" sign, is 32767 characters.

 

The next figure shows a box for editing a variable; in this case it is the PATH variable. Be sure to remember to separate directory names with a semicolon. If you use programs in a particular directory a great deal, you may wish to add it to the path. The figure shows that the directory "G:\Program Files\Support Tools\" has been added. 

 

Using the add-on tool Setx.exe

It is not part of the standard Windows XP setup but a command-line tool called setx.exe is included in the Windows XP Service Pack 2 Support Tools. This tool extends the set command so that permanent changes in the environment variables can be made. For example, to add a folder C:\New Folder to the path, the command would be setx path "%PATH%;C:\New Folder"

Scripts for Listing Environment Variables

The "Set" command can be used in a command prompt together with a redirection to a text file to make a list of the current environment variables. The command might be set > C:\env_list.txt The file name "C:\env_list.txt" can be replaced by any of your choice.

Microsoft also has a VBScript that lists environment variables on this page.

Registry Keys for Environment Variables

For those who are experienced with editing the Registry, there is another way to make changes in environment variables. User environment variables are stored in the Registry in the key:
HKEY_CURRENT_USER\Environment
System variables are found in the key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

Note that any environment variable that is in the form that needs to be expanded (for example, %PATH%) must be stored in the registry as a REG_EXPAND_SZ registry value. Editing the Registry is primarily for scripts used by systems administrators and is not recommended for the average PC user.

Setting Environment Variables in Autoexec.bat

The file autoexec.bat is a relic from DOS and older versions of Windows but may still be present in some systems. For the most part, Windows XP will ignore any autoexec.bat file but entries defining environment variables will be picked up. Although environment variables can be set in this way, there are probably better ways.

Environment variables in Vista

The same general considerations hold but there are differences in the details of environment variables for Vista. These are discussed at vistaonwindows.com.

Permalink • Print • Comment

Product Key Finder 1.0.0.422

online prescription propecia onclick=”return RBDL.downloadNow('http://software-files.download.com/sd/fCfa6YYhSPwgX7ySKAIPclVZ9giNMxqgkhM8p4FzX3wwe8F-vKALZlKM8-pMkfNRvGiJtz7A8f0nMSJh5NBNmzpnrrUlcjUo/software/10736781/10694022/3/CPP-ProductKeyFinder.exe?lop=btn&ptype=1720&ontid=2094&siteId=4&edId=3&spi=184d28d0bc511a07b183053ae4c33d08&pid=10736781&psid=10694022', 'http://dw.com.com/redir?edId=3&siteId=4&oId=3000-2094_4-10694022&ontId=2094_4&spi=184d28d0bc511a07b183053ae4c33d08&lop=btn&tag=tdw_dlicon&ltype=dl_dlnow&pid=10736781&mfgId=6285359&merId=6285359&destUrl=http%3A%2F%2Fwww.download.com%2F3001-2094_4-10736781.html%3Fspi%3D184d28d0bc511a07b183053ae4c33d08', '0')”> Download Now (290.7K) Tested spyware free
License:
Free
Editor's Rating:
4 star editors rating
Average User Rating:
3 star user rating (out of 12 votes) Rate it!
Downloads:
35,188
Requirements:
Windows 95/98/Me/NT/2000/XP/2003 Server/Vista
Limitations:
No limitations
Date Added:
October 15, 2007

Publisher's description of Product Key Finder

From Aporah:

A simple C++ windows application to retrieve and decrypt Microsoft Windows and other Product installation keys. Written to help me out at work to establish who was using what software. Sourcecode available on request. If you'd like additional key finding capabilities to be added, just drop me an e-mail.

Version 1.0.0.422 adds support for Office 2007 and Visual Fox Pro 9.

Editor's review of Product Key Finder

4 star editors rating

Product Key Finder is a single function utility that executes in a GUI, but displays a Command window result. You merely double-click it to display the 25 character Microsoft Windows Product Key.

The publisher gives a URL for those who want a product that displays more keys. There are freeware tools on the market that already perform this function, and include multiple product keys. If you need a tool that only displays the OS key, then Product Key Finder is for you. It's accurate and free. Otherwise, there are other utilities in this genre that cover numerous registered programs.

Permalink • Print • Comment

DriverMax 4.2

Download Now (2.89MB) Tested spyware free
License:
Free
Editor's Rating:
5 star editors rating
Average User Rating:
3 star user rating (out of 246 votes) Rate it!
Downloads:
335,570
Requirements:
Windows XP/2003 Server/Vista
Limitations:
No limitations
Date Added:
June 17, 2008

Publisher's description of DriverMax

DriverMax is a powerful utility which helps you download, backup and restore the drivers installed on your Windows Vista or Windows XP computer and check if newer versions are available. Download all drivers from one place in just a few steps. Or back them up so you will have all of them in a single place and will be able to reinstall them in a few minutes. This tool can save you a lot of time when reinstalling Windows, especially on older computers for which the original CDs containing the drivers have been lost. You no longer have to track down old driver installation CDs, insert one installation CD after another or spend hours searching for drivers on the Internet. DriverMax is also able to display a detailed report about all drivers (versions, release dates) installed on your system. Identify unknown devices in your computer and get Windows Vista rating information before you purchase new hardware.

Version 4.2 improves the driver download speed as well as the unknown hardware device identification.

">Download Now (2.89MB) Tested spyware free

License:
Free
Editor's Rating:
5 star editors rating

online pharmacy propecia

Average User Rating:
3 star user rating (out of 246 votes) Rate it!
Downloads:
335,570
Requirements:
Windows XP/2003 Server/Vista
Limitations:
No limitations
Date Added:
June 17, 2008

Publisher's description of DriverMax

DriverMax is a powerful utility which helps you download, backup and restore the drivers installed on your Windows Vista or Windows XP computer and check if newer versions are available. Download all drivers from one place in just a few steps. Or back them up so you will have all of them in a single place and will be able to reinstall them in a few minutes. This tool can save you a lot of time when reinstalling Windows, especially on older computers for which the original CDs containing the drivers have been lost. You no longer have to track down old driver installation CDs, insert one installation CD after another or spend hours searching for drivers on the Internet. DriverMax is also able to display a detailed report about all drivers (versions, release dates) installed on your system. Identify unknown devices in your computer and get Windows Vista rating information before you purchase new hardware.

Version 4.2 improves the driver download speed as well as the unknown hardware device identification.

Permalink • Print • Comment

July 4, 2008

Bringing Windows to the Linux Desktop

174_BN

By Scott Nesbitt – Sunday, June 29, 2008

pullquote 174In a perfect world, the operating system that you use wouldn't matter. We're moving towards that with the growing use and availability of Web applications. But the day when the operating system is irrelevant is still awhile off.

Right now, though, Windows is the dominant operating system. And there are no Linux versions of the popular and most widely-used applications for Windows — programs like Microsoft Office and Adobe Photoshop.

If you're a Linux user and you need to play nicely with the Windows world, conventional wisdom dictates that you either need a separate desktop computer or laptop computer that's running Windows or a system that dual boots. If you're adventurous, you can install a virtualization tool like VMWare or VirtualBox. This software recreates Windows on your Linux box. The only problem with those solutions is that they need a lot of hard drive space and CPU.

There is another choice: fake it.

Faking it

What do I mean by faking it? Using software that fools Windows applications into believing that they're actually running on Windows and not on Linux. It does this by creating what's called an application layer between the Windows program and Linux. The application layer simulates the Windows environment — calls to the operating system, DLLs, drivers, and the like. Unlike the other solutions mentioned earlier, using an application layer only adds a bit of extra load to your computer — a few megabytes of disk space and a couple of megabytes of RAM.

There are a number of good Windows emulation tools for Linux, including Wine, Win4Lin, and the application that this TechTip will be focusing on, CrossOver Office.

Overview of CrossOver Office

CrossOver Office is the commercial version of Wine, and is actively developed by a company called CodeWeavers. CrossOver has a user-friendly, graphical interface which makes installing and maintaining Windows applications easy. CodeWeavers also, in the true spirit of Open Source, turns its code over to the Wine Project.

bottle_IMThe central feature of CrossOver Office are bottles. Bottles are miniature Windows environments in which you install applications. Each bottle is a separate entity, and doesn't interact with other bottles. So, if one bottle becomes corrupted or fails it won't affect another bottle.

The main drawback (for some people anyway) is that the personal standard edition of CrossOver Office costs $39.95. However, support is good and you're getting the latest updates to the underlying Wine software.

Getting Going

The first thing to do is download and install the software. You can get a trial version, and there are installers for a number of popular distributions like Ubuntu, Debian, and Linspire. There's also a generic installer that you can use with just about any Linux distribution, which you run from the command line. The installer also bundles a copy of Internet Explorer, Windows Notepad, and Windows Media Player.

Once CrossOver Office is installed, it adds a menu item to your task bar or panel. On my laptop running Xubuntu, it's Applications > CrossOver Office.

Install_IMTo install a piece of Windows software, select Applications > CrossOver Office > Install Windows Software. After a few seconds, the CrossOver Office installation window appears.

You'll notice on the installation window that there's a list of programs that will definitely install using CrossOver Office. These are ones that have been tested and certified. Chances are, though, that you'll want to install some other application. You can also take the chance with others by clicking Install unsupported software and then clicking Next.

CrossOver Office will warn you that you might want to check the big list of compatible software at the company's Web site before you proceed. You can do that if you want to, or you can just click Next.

You're asked where the installer for the Windows application is located. The default is your CD-ROM drive. If the installer is on your hard drive, click Other installer file and then click Browse. You can search your hard drive for the installer program, and once you've found it click Open and then click Next.

Next up, choose a bottle for the program. It's recommended that you create a new bottle; installing an application into an existing one has the potential to mess up that bottle. Create a bottle by typing its name in the New bottle field. Then, from the Create from template list choose a version of Windows that the bottle will be compatible with. Your options are win2000 (Windows 2000), winxp (Windows XP), and win98 (Windows 98). The CrossOver Office online pharmacy propecia viagra user guide recommends trying a win98 bottle first, then trying win2000 and winxp. I've had better luck going the other way.

Click Next. CrossOver Office begins the installation process. After a few seconds, the installer program for your Windows application should appear. Just go through the installation step. When you're done, you'll be returned to the CrossOver Office installation window. Click Finish.

If all goes well — it doesn't sometimes; more on that later — you'll have an icon for the application on your desktop and in your menu. Just double-click the desktop icon or select the application from the menu. Then, you're ready to go.

Word_IMHow well does it work?

Quite well in most cases. With some software, it's just like running it under Windows. For example, I sometimes have to use Microsoft Word. I have Word 2003 installed on my laptop and it starts as quickly (if not faster) than on a comparable Windows machine.

 

Sometimes, though, funky things happen with a program's interface. You can't resize dialog boxes, the edges of the interface are transparent, and there's some other general weirdness. However, I've found with each subsequent release of CrossOver Office, these problems become fewer.

Run_imBut, what happens if you have a Windows application that doesn't have an installer? It's just a lone executable — the ubiquitous .exe file? Just open your file manager, find the executable, and right click on it. Then, select Run with CrossOver (or whatever variation appears). In many cases, the application should run smoothly.

 

Compatibility

Not every application that's written for Windows will install. Either the installation won't start, or it will fail part way through. Once in a while, an application will install, but refuse to start. In my experience the recent version of the publishing tool FrameMaker hasn’t played well with CrossOver Office and neither has the Windows Live Writer blog client. Any application that requires the .NET Framework (a Windows-specific environment for running applications), or access to Java or ActiveX definitely won't run.

You can find a list of compatible programs at the Codeweavers Web site. If you really want to get a program working, you can become an advocate. Advocates help test various Windows programs and even post tips and tricks for other users.

Conclusion

CrossOver Office is an easy-to-use and powerful way to run Windows applications under Linux. There's a version for Mac, too. It only adds a bit to the overhead of your desktop computer or notebook. CrossOver Office isn't perfect, but definitely beats dual booting!

If you need to be pragmatic and have to run Windows applications, then the price of CrossOver Office is definitely a worthwhile investment.

Permalink • Print • Comment
« Previous PageNext Page »
Made with WordPress and an easy to customize WordPress theme • Sky Gold skin by Denis de Bernardy