::zmset.bat ::image-href-shareware\trunk\driveroot\AppsData\ZaphodsMap ::maintained by HREF Tools Corp. :: ::This file plus ZMLookup.exe should be in the ZaphodsMap root folder ::Sample calling syntax: ::call %ZaphodsMap%zmset.bat myenvvar AsDefaultContext :: ::For usage and examples, run ZMLookup.exe at a cmd prompt if %2==AsDefaultContext goto SetAsDefaultContext if %2==UsingKey2Value goto SetAsKey2Value if %2==UsingKey2Folder goto SetAsKey2Folder if %2==UsingKey2File goto SetAsKey2File if %2==AsKeyedFileZNodeAttr goto SetAsKeyedFileZNodeAttr else set %1= goto end :SetAsDefaultContext for /f "tokens=*" %%i in ('%ZaphodsMap%ZMLookup.exe /DefaultContext') do SET %1=%%i goto end :SetAsKey2Value for /f "tokens=*" %%i in ('%ZaphodsMap%ZMLookup.exe /Key2Value %~3') do SET %1=%%i goto end :SetAsKey2Folder for /f "tokens=*" %%i in ('%ZaphodsMap%ZMLookup.exe /Key2Folder %~3') do SET %1=%%i goto end :SetAsKey2File for /f "tokens=*" %%i in ('%ZaphodsMap%ZMLookup.exe /Key2File %~3') do SET %1=%%i goto end :SetAsKeyedFileZNodeAttr for /f "tokens=*" %%i in ('%ZaphodsMap%ZMLookup.exe /KeyedFileZNodeAttr %~3') do SET %1=%%i goto end :end