Showing posts with label Windows vista. Show all posts
Showing posts with label Windows vista. Show all posts

Tuesday, September 29, 2009

Windows Vista Secret #1: Open Command Prompt Here

I don't know about your workflow as a developer, but I often find myself switching back and forward between an Explorer window and the command shell. For example, sometimes I'm looking around the filesystem for a project that I created a while back and then I want to build it from the command line or rename some of the files or something.

Here's a trick that I don't think many people are aware of. Right-click on any folder on your Windows Vista machine while holding down the shift key. You'll see an extra context-sensitive menu item there: Open Command Prompt here. Just click on this menu and a command window will open with the current working directory set to the folder's actual location.


Figure: folder context-sensitive menu, with and without the shift key modifier.

In the past there was a Windows XP powertoy that did this; now it's built into the operating system (albeit hidden away to protect the unwary from themselves). What's really cool about this is that if the target folder is a network location, Windows Vista silently maps a network drive to that location before opening the folder (so that your command prompt has a valid path containing a drive letter) and then deletes the network drive once the command prompt is closed.

Windows Vista Secret #2: Copy as Path

Ever wanted to copy a link from a network file share into an email, and wound up having to traverse the path, click on the address bar, copy the details out, paste it in and then type the filename itself (with the appropriate quotation marks?

With Windows Vista, there's an easier way. In the same hidden context-sensitive menu I mentioned in the first secret, there's another helpful shortcut: Copy as Path. Unlike the command prompt trick, this menu item appears both for files and folders, so you can use this anywhere you want to quickly grab a shortcut to send someone else.

Windows Vista Secret #3: Bringing Back Start / Run

The Start menu got a big overhaul in Windows Vista, with a number of significant changes made as a result of usability testing and research. One of the nicest innovations to my mind is the search bar at the bottom, which searches through your programs, document files, emails and anything else for which a search provider is registered; this saves a lot of time hunting around. Want to run Powerpoint without having to browse around the "All Programs" menu? Just type "Powerpoint" in the searchbar. Can't remember which of the myriad dialog boxes and settings you have to go through to find the Device Manager? Just type "device" in the search bar.

Of course, there are times when you may still just want the fast but dumb Run dialog that Windows XP provided:

It seems that some people think we got rid of this altogether, when in fact we just removed it from the default settings since most people won't need it any longer. The quick way to get at it is to use the Win+R shortcut key combination at any time - this is what I tend to use most of the time.

If you want to restore it permanently to your Start menu, here's what you do:

  1. Right-click on the Start menu and choose Properties;
  2. Select the Start Menu tab and click on the Customize... button;
  3. Ensure the "Run command" option is checked.

Now the Start / Run command will be restored to its full glory. Of course, you can swap in and out a bunch of other choices (I like the Administrative Tools to be right there, but I don't much care for Pictures, Games and Music to be top-level items on my work machine.) Here's how I have my default menu configured - you'll see it's also docked to the left-hand side of the screen:

Windows Vista Secret #4: Disabling UAC

If you're a reader of this blog, I'm going to take a low-risk gamble and assert that you probably consider yourself a power user. You pride yourself in the responsibility of having full and absolute control over your machine environment and anything that comes between that perfect human-machine symbiosis is to be spurned. If only there were a way to turn User Account Control off on a Windows Vista machine, you'd upgrade immediately. Well, dear reader, I'm here to help.

Firstly, it's worth a brief digression into the benefits of this feature. Running as admin is a bad thing, as most of us know. Aaron Margosis has blogged extensively on this issue, and I won't rehash it here. But for reasons of compatibility, running as a standard user can still be a somewhat painful proposition. Windows Vista attempts to give you the benefits of both worlds by allowing administrators to execute most processes in the context of a standard user and only elevating the privileges on their user token by consent, in addition to allowing standard user accounts to perform administrative tasks by selectively elevating a process to use administrator-level credentials.

In general, UAC has turned out pretty well. It was pretty intrusive in early builds, prompting often and sometimes capturing focus at the wrong time. For the vast majority of users, UAC will offer a valuable level of security protection that will protect against malware: it simply won't have the rights to perform invasive actions like installing device drivers or services. Once a system is configured, you'll rarely see UAC prompts unless you're an inveterate settings tweaker. Incidentally, you can find out a great deal more about how UAC works, what you need to do to your own applications so that they co-operate well with UAC, and the rationale for its design at the official UAC blog.

It is possible to switch UAC off. I really don't recommend it - if you like full control over your machine, surely you want to know when something is attempting to perform an administrative-level action? Nevertheless, I'd prefer to have you run Windows Vista without UAC than having you run a different operating system.

There are two ways to disable UAC. The easy solution is through Control Panel. Type "UAC" into the search bar at the top of the screen and you'll see this task presented:

This approach is pretty brute-force, though. It just switches the whole thing off. There's a more subtle configuration choice that gives you some of the benefits of UAC without any of the prompting. You'll need to edit the local security policy to control this, as follows:

  1. From the Start search bar, type "Local Security Policy"
  2. Accept the elevation prompt
  3. From the snap-in, select Security Settings -> Local Policy -> Security Options
  4. Scroll down to the bottom, where you'll find nine different group policy settings for granular configuration of UAC.

Perhaps the best choice to select is to change the setting:
User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode
from Prompt for consent to Elevate without prompting.

What does this do? Despite the warning from the Windows Security Center, UAC isn't actually switched off. It's still there, and all your processes will still run as a standard user. To prove this, open a command prompt and try to save a file to the c:\ directory. You'll get an access denied error message. However, when a process is marked for elevation, instead of getting the secure desktop elevation prompt, the request will be silently approved. To show this in action, right click on a command prompt shortcut and choose "Run as Administrator". You'll see the command prompt open without elevation, but the window title will show that you're running with full administrative privileges.

Using this approach is better than nothing, but it's a bit like relying on everyone else having a vaccination against measles to protect yourself from infection. Read the explanations on the second page of the property sheet for each policy setting before tinkering, and be careful!

Saturday, September 19, 2009

Windows Vista Secret #5: Running Quick Launch Items

Saw this posted on one of the internal forums today, and I thought this was something that was worth sharing. If you're a keyboard junkie, you'll love this.

Do you have a few applications that you're always firing up? Would you like a system-wide keyboard shortcut to run them? Here's what you do. Simply add shortcuts to the Quick Launch toolbar, as shown in the screenshot below.

Now you can simply use Win+1, Win+2, Win+3 and so on to launch each application. For example, on my machine, Win+3 launches Notepad and Win+6 launches the VS command prompt. This works no matter what application has the focus.

More coolness coming your way soon, courtesy of Windows Vista!

Windows Vista Secret #6: Running a Command Prompt During Setup

If you're doing a fresh install of Windows Vista, you'll probably use a bootable DVD so that you're able to reformat the system partition. But sometimes you might find yourself in a situation where you could really use a command prompt as you go through those initial configuration stages (for example, when I installed Windows Vista on my home media center machine I needed to run the diskpart command line utility to convert a dynamic disk back to a basic disk structure).

Here's the magic key sequence: simply press Shift+F10, and you'll be presented with a command prompt. This also works after Windows Vista has rebooted for the first time on an upgrade, although be very careful what you do here - there's almost no good reasons to be interacting with the system at this point in time, and you shouldn't expect us to get you out of any holes you dig yourself into if you start making invasive changes at this point in time.

Windows Vista Secret #7: The Oldest Component in Windows?

We go to fairly extreme lengths to try to maintain compatibility with older applications, as Raymond Chen's blog often demonstrates in vivid fashion. As an example of this, some of you may remember seeing Jim Allchin's demonstration of Visicalc (the earliest spreadsheet) at PDC 2003 running on Windows Vista (then known as "Longhorn", of course).

So I wondered - what is the oldest component still present in Windows Vista? After a bit of digging around, I think I've finally discovered the answer.

Dear old edlin, the very first line editor in MS-DOS, is still available for your batch editing pleasure over a quarter of a century after its introduction. According to wikipedia, edlin even pre-dates MS-DOS, having been written for an even earlier operating system that was one of the company's first acquisitions. My first exposure to MS-DOS was version 3.2 on my father's office computer, and I used to remember most of the mnemonic commands by heart. It's not a user-friendly tool, but it was fast to load and more forgiving of mistakes than the alternative of copy con filename.txt.

This is one secret that has mere curiosity value, but I still have a warm spot for this venerable editor and I salute its indefatigability!

Windows Vista Secret #8: Zoom in Explorer

The awesome guys from the Windows Vista Magazine revealed a great Windows Vista secret recently that I wanted to bring to a broader audience.

When you're browsing around the file system in Explorer, it's often useful to be able to quickly switch between different folder views. If you're looking at a folder with lots of long filenames, maybe the Details view works best. If you're looking at a folder with lots of photos, maybe a small thumbnail view works well; for a folder with lots of documents, maybe a larger thumbnail view works better. Now you can use the Views button on the toolbar to modify this - click the button to toggle between views or use the down arrow to get access to the slider - but it's quicker to use a shortcut. Simply hold down the Ctrl key and use your mouse scrollwheel to resize the icons from small to extra large.

What's really cool about this, as Jon points out, is that it also works on the desktop itself. If the desktop has focus, simply do Ctrl+mousewheel and you can go from the regular 48x48 icons to full 256x256 photographic-quality renditions. For those of you who have a desktop filled with documents and shortcuts, you can of course also use this feature to cram even more on your screen so that you never have to create a folder again!

Windows Vista Secret #9: Kill the Startup Monsters

If there's one thing that puts me off an application, it's when it unnecessarily inserts itself into the Windows startup process so that it can have its very own system tray icon from whence it can spam me with annoying messages. Obviously it makes sense for some applications to run on startup (for example, I want Windows Live Messenger to be running without me needing to manually start it each time). The problem is that there are multiple places where an application can register itself for execution on startup, and this makes it hard to retain control over which programs are granted such esteemed status.

Of course, I wouldn't be writing this entry unless Windows Vista had a solution! From the start menu search bar, type System Configuration, and click on the link that comes up. You'll be required to provide privilege elevation unless you've disabled UAC, and then you'll see the following utility:

As you can see from the above screenshot, the Startup tab enumerates all the applications that are set to run as startup, regardless of whether they are set in the registry (either per-machine or per-user), the user profile, or simply the startup folder in the Programs entry of the start menu. You can disable any or all of them; they'll still be listed there so that you can switch them on again if you need to.

I should note in passing that this tool also allows you to do some other pretty useful things, like editing your boot configuration database (no need to master arcane bcdedit commands any longer) or accessing a variety of other system tools and utilities. It's the power user's configuration tool of choice - go check it out!

Windows Vista Secret #10: Open an Elevated Command Prompt in Six Keystrokes

User Account Control is, as I mentioned in secret #4, an important part of the security protection that Windows Vista offers. For any user with administrative credentials, you can always execute a process with full admin rights by right-clicking on the executable or shortcut and choosing "Run as Administrator".

For myself, I regularly want to open an admin-level command prompt, and it's a distraction to have to move my hands off the keyboard to go through the elevation contortions. So I was delighted to find a little keyboard shortcut for launching an elevated process. Simply press Ctrl+Shift+Enter from the search bar on the start menu with a selected application, and that triggers elevation.

For example, to launch an elevated command prompt, simply press the Win key; type cmd; press Ctrl+Shift+Enter; and then hit Alt+C to confirm the elevation prompt. Six keystrokes to an elevated command prompt!

(Once I've got an elevated command prompt, I always like to execute color 4f as my first input so that this console window is visually differentiated from other non-elevated windows.)

Windows Vista Secret #11: Deleting the Undeletable

As many of us move forward from Windows XP or prior beta versions of Windows Vista to the final RTM version, I thought this little tip / secret might be in order. You may be aware that Windows Vista includes a number of different ways to upgrade a computer, from a straight in-place upgrade (insert CD, run setup and choose upgrade) to Windows Easy Transfer, which allows you to copy settings, programs and data from an old setup a fresh shiny new OS environment. But I'm the purist type who hates even the thought of leaving any detritus around and insists upon a clean install to a pure, unsullied partition.

In doing this, it's not unusual to find some folders that can't be accessed, even by an administrator, because their ACLs were set for accounts with SIDs that applied to an old partition. For example, on my home machine, I switched the C: and D: drive cables around and installed Windows Vista RTM on the new drive. Having tested everything worked, I wanted to delete some old redundant directories (like the old \Program Files directory). If even an administrator can't access the file, how do you take it back?

The secret lies in two command-line utilities, one ancient, the other completely revised for this release. Respectively, these are takeown (which takes ownership of a file or directory) and icacls (which sets new ACLs on that directory). I created a small batch command on my system called itsmine.cmd, as follows:

takeown /f %1 /r /d y
icacls %1 /grant administrators:F /t

From an elevated command prompt, you can run a command such as itsmine d:\hard_to_delete and this will reset ownership and ACLs on the hard_to_delete directory such that a command like rd /s d:\hard_to_delete should work.

These two lines have saved me a lot of pain over the last week as I've gradually flattened and reinstalled the RTM version of Windows Vista on each of my machines: hopefully they'll be equally useful to you!

Monday, July 13, 2009

Screen Capture Tools: 40+ Free Tools and Techniques


Screen capture, or print screen is perhaps the most efficient way to share whatever appears on your desktop. They help tech users like us to share and communicate better with friends and peers. Major operating systems today comes with basic screen capture and print screen function, but if these can’t fulfill what you need from a screen capture then you are probably looking for a screen capturing tool.

Screen capturing tools do what the basic tool don’t. What these tools could do varies, including the ability to include sketches and text, instantly upload image online, audio capturing, dimension-specific capturing and more. Make your screen capture and sharing experience more interesting, here’s a showcase of 40+ Free Screen Capturing Tools and Related Techniques. Full list after jump.

Cross Platform

We love cross platform tools. No more worries when you are all too familiar with one tool and needs to get the job done on a different operating system.

  • Jing Project

    A project of Techsmith, Jing has the ability to do instance image and video capturing. Aside from that, you can also do sketches on the image and share them online. Speaking from functionality point of view, being free tool is definetely a steal. [Download: Windows, Mac]

  • Evernote

    Saying Evernote has cross platform supporting ability seems to be slightly inaccurate, instead it’s multi-platform. This awesome tool not only runs on Windows and Mac, it also supports iPhone, Windows Mobile and even websites. You’ve got to check out the video to see how great it is. [Download: Windows, Mac, more]

  • WebKut

    Capture web pages in whole or parts. And because it’s developed with Adobe AIR, you bet it’s cross-platform. It captures web screenshots, the only problem is – it’s not attached to the browser. [Download]

  • Websnapshot

    Yet another Adobe AIR application to take website snap shots. [Downloads]

Windows Only

By default, you can only do a full page and active window print screen on Windows. The following tools give you much more flexibility.

  • ZScreen

    Open-source screen capture program that allows for region/window/full-screen screenshots. It can FTP screenshots and put the URL in your clipboard in a single keystroke. It supports automatic custom naming conventions with variables. [Download]

  • Screenshot Captor

    Behave like most screen capture software. The most interesting part is – you can run it from a USB thumbdrive. Talking about print screen portability. [Download]

  • Cropper

    Cropper is a screen capture utility written in C# on the Microsoft .Net platform. [Download]

  • Capture

    Capture is a quick-and-easy screen capture utility for Windows (and NT), which allows you to capture the entire screen, at any color depth and resolution, and save it into a Bitmap file for editing. [Download]

  • MWSnap

    Small yet powerful Windows program for snapping (capturing) images from selected parts of the screen. [Download]

  • ScreenPrint32

    Free windows tool to print and/or capture to disk or clipboard, the full desktop, active window, predefined area, or user selected area of the screen. [Download]

  • Snippy

    Useful free tool to copy webpage screenshot for sharing purposes. Interesting thing is that, when you cutting out a portion of an Internet Explorer window, the URL will also be copied to the clipboard; this makes it very convenient to select something interesting on a Web site and send it out in an email message. [Download]

  • SWBCapture

    Screen capture utility that allows you to quickly and easily capture an image of any window on your desktop, or the entire desktop. [Download]

  • Screen Grab Pro

    Screen Grab Pro features one-click grab of any screen for ease of use, Timer operation, Current window selection list and more. [Download]

  • Wisdom-Soft ScreenHunter

    Wisdom-Soft ScreenHunter is a free screen-capture tool for you to easily take screenshots. ScreenHunter can capture a full screen, an active window, the client window, or a rectangular area. [Download]

  • Gadwin PrintScreen

    Capture screenshots with ease. [Download]

  • FastStone Capture

    Light and powerful screen capture application with whole screen, object-selective and region screencapture ability. Save files in various formats, BMP, GIF, JPEG, PCX, PNG, TGA, TIFF and PDF. [Download]

Mac Only

Here are some of the most commonly used screen capturing tools for the Mac enthusiast.

  • Capture Me

    Flexible screen capture and recording utility for Mac OS X which features a floating capture window, several saving options, and resize ability. [Download]

  • Backdrop

    Simple utility to fill your screen with a giant blank window. Fill the window with a solid color or a custom image, your choice so you can take clean nice printscreen. [Download]

  • Skitch

    Skitch is not solely a screen capture tool. It allows you to capture screen shots of any application, chat moments and the ability to sketch on the screen shots. You can then upload it to share with friends. A printscreen tool injected with some fun. [Download]

  • InstantShot!

    InstantShot! offers classical screenshot functionality for capturing the whole screen, a portion of it or a window and also the option to make timed screenshots or to make delayed captures over time. It offers a wide range of preferences and options to fit everyone’s needs. [Download]

  • Paparazzi!

    Written in Objective-C and the WebKit framework, this small utility is suitable for those who wants to do simple screen shots in their Mac. [Download]

  • Screenshot Helper

    Screenshot Helper shows a full screen window with a solid color or a desktop picture so that you can take clean screenshots without having irrelevant windows and desktop icons in the background. [Download]

  • SnapNDrag

    SnapNDrag lets you take a screenshot by just clicking a button and dragging the resulting screenshot off, perhaps one of the simplest and easiet to use Mac printscreen tool we’ve seen. [Download]

  • About Timed Screenshot 1.1

    A light screen capturing tool that runs in background until you kill the process (in Terminal) or logout. [Download]

  • Copernicus

    Mac application for speed screenshot taking and video capturing (no audio). It’s also a virtual photo gallery. [Download]

Linux

Screen capturing tools for Linux users.

  • XscreenCapture

    XscreenCapture allows you to capture an X11 dump from any Linux client with X11 port open. It will also convert and save automatically the result picture in the desidered compress format (default PNG). [Download]

  • Xvidcap

    Screen capture enabling you to capture videos off your X-Window desktop for illustration or documentation purposes. [Download]

Web Tools

These web tools go beyond screen capturing of your desktop. It allows you to print screen any website, all the way from header to footer.

  • Browsershot

    Free web service that shows you how your website looks like in different browser of different version. A must tool for web developers on a browser compatibility check.

  • ScreenShots.jp

    Similar to Browsershots, this free web services is for those who understand Japanese.

  • Super Screenshot

    Simple web service for those who wants quick print screens. No compatibility check of different browser or versions available.

  • Clip2Net

    Clip2Net allows you to capture, sketch and share screencaptures online instantly. Good tool to communicate ideas with peers. [Download]

  • Websnapr

    As the name suggest, it snaps thumbnail screenshot of any webites. All you need to do is enter the URL and hit capture. Comes with plugins you to facilitate blogging and web publishing.

  • Thumbalizr

    Yet another online web thumbnail generator. Comes with API.

  • Browsrcamp

    Test the compatibility of your design with Mac OS X browsers. Free web screenshot tool build on Mac OSX Leopard.

Firefox Plugins

Screen capturing plugin for Firefox browser. They prints the lower fold screens you don’t see.

  • Screengrab!

    Firefox plugin with the ability to printscreen entire upper-fold and lower-fold of any browsing websites. Instead of saving the screenshot to a file, you can copy it to clipboard. [Install]

  • FireShot

    Firefox extension that creates screenshots of web pages. Comes with sets of editing and annotation tools, which let users quickly modify web captures and insert text annotations and graphical annotations. Somehow it’s nota available for Firefox on Mac OSX [Install]

Monday, June 29, 2009

Install Windows XP on Your Pre-Installed Windows Vista Computer

The question I am asked most often is "How do I install a dual-boot with Windows XP on my new Windows Vista computer?" The answer is that it's not that difficult, it's just very time consuming, and you need to own a copy of Windows XP.

Note that you should not attempt this if you aren't ready to troubleshoot any problems that might occur.
The first issue we encounter is that computers with pre-installed operating systems take up the entire drive. Luckily Microsoft included the Shrink volume feature in Vista, so we can easily shrink the Vista partition down to make room for XP.

Open the Computer Management panel, which you can find under Administrative tools or by right-clicking the Computer item in the start menu and choosing Manage. Find the Disk Management item in the list and select that.

Now we'll shrink our volume down by right-clicking on the main hard drive and choosing Shrink Volume.

Now you can choose the size that you want to shrink, which really means you are choosing the size that you want your XP partition to be. Whatever you do, don't just use the default. I chose roughly 10gb by entering 10000 into the amount.

The next step might be confusing, because we need to change the cd-rom drive that's invariably taking up D: at the moment, because we want to use D: for the Windows XP partition, but it's already taken by the cd-rom drive. If you skip this step than XP will install onto the E: drive, which isn't the end of the world, but it's not quite as tidy.

Right-click on the cd-rom drive in the list and choose Change Drive Letter and Paths from the menu.

Now we'll change the CD drive to use E: by selecting that in the drop-down.

Now we can create a new partition for XP to live on and make sure that the drive letter is set the way we want. If you do not create a partition now the XP install will do so automatically, but it's easier and cleaner to do it this way.

Right-click on the Unallocated free space area and then select New Simple Volume from the menu.


Follow through the wizard and select whatever options you'd like, making sure to use D: as the drive letter.
Now you will need to close out of disk management and reboot your computer. This is because we can't do the next step until we reboot. (you can try, but it won't work)

So we've come back from rebooting… open up Computer from the start menu and then right-click on the D: drive and select properties.

Give your partition a meaningful name like "XP". It would be wise to name the C: drive to "Vista" at this point as well.

Now you'll want to pop your XP cd into the drive and boot off it. You may have to configure your BIOS to enable booting off the CD drive, or if your computer says something like "Hit Esc for boot menu" you might want to use that.

Once you come to the screen where you can choose the partition to install on, then choose either the unpartitioned space or the new partition you created. Whatever you do, don't try and install onto your Vista partition! See how much cleaner it is now that we've labeled each partition distinctly?

We'll assume XP is completely installed at this point, and you will have lost your ability to boot into Windows Vista, so we'll need to use the VistaBootPro utility to restore the Vista boot loader.

Download and install VistaBootPro from vistabootpro.org

During the install you'll be forced to install the .NET 2.0 framework. Open up VistaBootPRO and then click on the System Bootloader tab. Check the "Windows Vista Bootloader" and then "All Drives" radio buttons, and then click on the Install Bootloader button.

At this point, the Windows Vista bootloader is installed and you'll only be able to boot into Vista, but we'll fix that. Instead of manually doing the work, we'll just click the Diagnostics menu item and then choose Run Diagnostics from the menu.


This will scan your computer and then automatically fill in the XP version.. click on the "Manage OS Entries" tab and then click in the textbox for Rename OS Entry, and name it something useful like "Windows XP" or "The Windows That Works"


Click the Apply Updates button and then reboot your computer… you should see your shiny new boot manager with both operating systems in the list!


If you get an error saying "unable to find ntldr" when trying to boot XP, you'll need to do the following:Find the hidden files ntldr and ntdetect.com in the root of your Vista drive and copy them to the root of your XP drive.

If you can't find the files there, you can find them in the \i386\ folder on your XP install cd

This is a critical piece of information: Windows XP will be installed on the D: drive, even in Windows XP… so you'll need to keep that in mind when tweaking your system.

You can share information between the drives, but I wouldn't recommend messing with the other operating system's partition too much… it might get angry and bite you. Or screw up your files. What I do recommend is that you store most of your files on a third drive shared between the operating systems… you could call that partition "Data".

Enjoy...But,..Be a little careful..!