Scripts to help workflow now on google code.

I've uploaded my scripts to help workflow to google code, naming the project batch flow. Heres a summary of some of the things you can do.

Clipboard integration

Go to a directory in the clipboard.

If you have the address bar enabled in explorer: Copy the location, go to the prompt and enter 'pcd' to go to that folder Go to the location of a setting in netbeans or eclipse: Copy the location , go to the prompt and enter 'pcd' to go to the folder (or folder containing the file).

Get the current directory without dragging:

Enter 'ccd'

Directory bookmarks

dirsave and dirload let you save named bookmarks.

Using hotkeys

If you use the alternate shell 4nt (or the free TCC/LE) you can use the supplied configuration and aliases to access the bookmark functionality from the keyboard: In the 4nt or tcc/le prompt enter "option", under the "TCStart/TCExit" path, change the location to the location where batch-flow is installed + "\conf", for instance on my computer batch-flow is installed to c:\usr\batch-flow, so I set it to
Now in new TCC/LE prompts F5-F10 are reserved for directories: Ctrl+Fkey to save, and Alt+Fkey to load.  Alt-F12 lists these shortcuts. Note:  Alt-F12 only lists shortcuts on FKeys, to list these and other shortcuts enter dirload /l
batch-flow comes with other handy hotkeys, use 'alias' in TCC/LE to see what they are.

Path manipulation


It's annoying after installing a program to have to add it to the path, so there is an 'addpath' command to do this.


This is a more general utility for viewing the registry path, you can list it, validate it, check for the location of files within it. Also useful is 'regpath /L' which sets the local prompts path to the one in the registry.

Further help

Most of the commands have help builtin, which you can access by using the /? option.

Access files in a Linux virtual machine from Windows

I recently found a neat way of accessing files in a linux VMWare image.   This is really useful, as theres never really a good time to break your VMWare image, this is also handy if you don't want to run the whole machine, but just access the files inside. There is one caveat:
  • It only works if the filesystem is ext2 (ext3 works, and ext4 probably works).

Install VMWare DiskMount Utility

Accept the EULA, download and install the VMWare DiskMount utility. For convenience add the utilities folder to the path:
C:\Program Files\VMware\VMware DiskMount Utility
Do this through the Windows Gui, or even use my addpath utility.
At this point you can mount Windows VMWare images. The usage is:  vmware-mount drive-letter vmdk-image. Heres how I mount my Ubuntu image to the j: drive
[C:\vmware\Ubuntu]vmware-mount j: ubuntu.vmdk
No output here indicates success. At this point everything seems fine, but a crucial piece of the puzzle is still missing; try and view the files and you still can't:

Failing to see files in an ext2 VMWare image

The next step is to make Windows understand the ext2 filesystem, using a special driver.

Install ext2ifs

Grab ext2ifs from and install. If the following steps don't work then you may need to reboot.

Thats it!

You should be now able to access files inside your VMWare image (assuming it's ext2 and not reiserfs), remount the image and have a go: In my case I did:
[C:\vmware\Ubuntu]vmware-mount j: ubuntu.vmdk
[C:\vmware\Ubuntu] dir j:
Heres the output - hooray, I can copy my work out of the image !

Viewing files inside a VMWare image with ext2fs

This is very useful, especially if you do dist-upgrade in ubuntu and can't access the network.

Bonus tip:

Newer versions of VMWare player let you install VMWare tools from inside the GUI, this is another way to fix the kind of catestrophic problems you can cause yourself by accidentally upgrading the kernel in an image.