Skip to content

Instantly share code, notes, and snippets.

View saschanaz's full-sized avatar
🏢
Working from office

Kagami Sascha Rosylight saschanaz

🏢
Working from office
View GitHub Profile
@saschanaz
saschanaz / installFirefox.cmd
Last active August 29, 2015 14:02
Install Firefox
set directory=%USERPROFILE%
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\firefox.exe"
if errorlevel 1 (
bitsadmin /transfer "DownloadFirefox" "https://download.mozilla.org/?product=firefox-stub&os=win&lang=ko" "%directory%\firefoxInstaller.exe"
echo Installing Firefox...
start /wait /D "%directory%" firefoxInstaller.exe
del "%directory%\firefoxInstaller.exe"
)
start firefox.exe http://jsfiddle.net/saschanaz/Rxv46/embedded/result/