| Home |
| About Keith's Code |
| Blog |
| Tutorials |
| Windows Gadgets |
| Joomla! Resources |
| Online Documents |
| User Forums |
| Making PuTTY (really) Portable |
|
First, I had to fix the puttyrnd.reg file to point to my thumb drive for the location of the random seed file. I probably could have left out this part and let PuTTY put it in the Application Data folder, but I didn't want to leave anything on the computer I was using and I wasn't sure I'd always have write permissions to that directory. I thought, at first, that I could just use the %CD% environment variable in the batch file, but then realized that I needed to escape the path with extra backslashes since it was going into a quoted string. So I came up with: set MyPath=%CD:\=\\%\\putty.rndNow, when I run the batch file, it sets the path for the .rnd file to whatever drive\directory the batch file is in. The only other change I had to make to get it working was a modification of the puttyrnd.reg file. I simply stripped the last line out of the file and renamed it puttyrnd.tmp. I then create the puttyrnd.reg file within my batch file. Here is a listing of all of the used files:
If you would like to download a zip file with all of these files plus PuTTY you can get it by going to Portable PuTTY in the online documents. Of course, you need to generate the putty.reg file that contains all your site definitions before you run the batch file. You can build the file by typing the following at the command line: regedit /ea putty.reg HKEY_CURRENT_USER\Software\SimonTatham\PuTTYHopefully this helps someone as much as it has me ... Keith
You must be logged in to leave a comment.
No Account? Join Now! (It's Free.) Powered by !JoomlaComment 3.25
3.25 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved." |
||||||