So I do a lot of work on a school computer. We can't install anything but we have most of our tools on our flash drives but I was wondering if there's a way to get Command Prompt to use Mercurial off of my Flash Drive. Let's say in theory that Mercurial's files were on my flash drive, where would I go from there?
Running Mercurial on a Flash Drive?
8.5k Views Asked by NessDan At
3
There are 3 best solutions below
1

download the tortoise hg .msi setup
msiexec /a tortoisehg-1.1.4-hg-1.6.4-x64.msi /qb TARGETDIR=f:\hg-temp
it will extract the tortise hg files to f:\hg-temp path,
goto f:\hg-temp\PFiles\TortoiseHg and copy it to F:\hg
Delete f:\hg-temp\PFiles\TortoiseHg
Then add f:\hg to your path
set PATH=%PATH%;f:\hg
(f:\ is your flash drive)
Say your flash drive was drive G: and your Mercurial executables are in G:\mercurial
Open a command prompt and enter:
Proceed to use
hg
as normalThis should work, in theory. If you're on a *nix computer, you would do something like this (given /media/FLASHDRIVE is the path to your flash drive):
Hope that helps!
EDIT
In response to the comment below:
Should do it :)