[FWTools] FWTools on USB

Mateusz Loskot mateusz at loskot.net
Fri Feb 16 18:45:37 EST 2007


Matt Wilkie wrote:
> Mateusz Loskot wrote:
>> David Fawcett wrote:
>>> Has anyone come up with an example setfw.bat and openev.bat for use on a
>>> USB drive where the drive letter may change? 
>>
>> May be %CD% environment will help.
>>
>> SET FWTOOLS_DIR=%CD%
> 
> If this is in a batch file better to use this instead. It allows the
> batch file to be run from somwhere else, by rooting fwtools_dir to the
> same directory that the script is in:
> 
>    SET FWTOOLS_DIR=%~dp0
> 
> example:
> 
>   C:> f:\usb-apps\fwtools\setfw_portable.cmd
> 
> Attached update is to allow for this usage.

Thanks Matt!

I have to confess the batch scripting on Windows is a black
magic for me ;-) I've found your script very informative.

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net


More information about the FWTools mailing list