6
1
I have a flash drive with subversion, python, php and notepad++ on it along with several of my ongoing projects. I do this to be able to resume work on any PC with an internet connection. Currently I have a .bat file that sets up the necessary paths as well as setting the current directory to my projects folder. I run this .bat file by opening a commend prompt and drag&dropping it in.
Here is what I'd prefer: Opening the .bat file would open the configured command prompt and stay open.
Alternatively my flash drive could contain a shortcut to c:/Windows/System32/cmd.exe with the bat file as an argument (if that is possible)
Any way this could be done would be helpful and timesaving
I think you'll be running into the problem that the drive letter will not be the same on all machines you're plugging into. – slhck – 2011-04-30T18:35:22.350
1I'm not hard-coding the location :) – Hubro – 2011-04-30T18:43:23.547
3@slhck: That is not a problem, as you can set the path on the same drive as the batch script using the
%~d0
parameter. eg.path %~d0\Utils;%PATH%
– paradroid – 2011-04-30T19:13:08.893@paradroid Ah, great, learned something today :) – slhck – 2011-04-30T21:34:50.243
How about a simple shortcut to something like
cmd /k x:\setvars.bat
(wherex:
is your flash-drive–letter)? – Synetech – 2012-11-11T01:02:33.077