Open main menu

CDOT Wiki β

Changes

Universal Firefox on a USB Key

625 bytes added, 18:16, 16 April 2008
Version 0.3
Having learned that MacOS is working with Linux as its backbone, we modified our Unix script to work for the Mac Firefox. Now we when we executed Firefox for Mac from the USB drive the program hung unexpectedly. It took a long time for the first window to appear and then we could not go any further. In the end we got a working Mac Firefox by taking it off of an existing install.
 
@echo off
ver | find "2003" > nul
if %ERRORLEVEL% == 0 goto ver_2003
ver | find "XP" > nul
if %ERRORLEVEL% == 0 goto ver_xp
ver | find "2000" > nul
if %ERRORLEVEL% == 0 goto ver_2000
ver | find "NT" > nul
if %ERRORLEVEL% == 0 goto ver_nt
echo Machine undetermined.
goto exit
:ver_2003
:Run Windows 2003-specific commands here.
echo Windows 2003
goto exit
:ver_xp
:Run Windows XP-specific commands here.
echo Windows XP
goto exit
:ver_2000
:Run Windows 2000-specific commands here.
echo Windows 2000
goto exit
:ver_nt
:Run Windows NT-specific commands here.
echo Windows NT
goto exit
:exit
pause
Our Mac script is as follows:
1
edit