@echo off echo run as admin backup registry first pause pause echo removing current user assocations echo Windows Registry Editor Version 5.00 > ass.reg echo [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\] >> ass.reg echo [-HKEY_CLASSES_ROOT\.XLS] >> ass.reg regedit /s ass.reg echo pwd = %CD% ftype pdf=%CD%\viewers\Adobe Reader v9.0 Lite ENG - (Portable) - Mr1000.exe "%%1" assoc .pdf=pdf ftype doc=%CD%\viewers\th_office2007E_sp1\Microsoft Office Word 2007.exe "%%1" assoc .doc=doc ftype xls_auto_file=%CD%\viewers\th_office2007E_sp1\Microsoft Office Excel 2007.exe "%%1" assoc .xls=xls_auto_file ftype ppt=%CD%\viewers\th_office2007E_sp1\Microsoft Office PowerPoint 2007.exe "%%1" assoc .ppt=ppt ftype zip=%CD%\media\7zip\7zFM.exe "%%1" assoc .zip=zip ftype psd=%CD%\viewers\PhotoShop CS3-Ext.exe "%%1" assoc .psd=psd ftype mp3=%CD%\media\VLCPortable\VLCPortable.exe "%%1" assoc .mp3=mp3 ftype m3u=%CD%\media\VLCPortable\VLCPortable.exe "%%1" assoc .m3u=m3u ftype flv=%CD%\media\VLCPortable\VLCPortable.exe "%%1" assoc .flv=flv ftype avi=%CD%\media\VLCPortable\VLCPortable.exe "%%1" assoc .avi=avi ftype mpg=%CD%\media\VLCPortable\VLCPortable.exe "%%1" assoc .mpg=mpg ftype rar=%CD%\media\winrar\WinRAR.exe "%%1" assoc .rar=rar ftype jpg=%CD%\viewers\i_view32.exe "%%1" assoc .jpg=jpg ftype png=%CD%\viewers\i_view32.exe "%%1" assoc .png=png ftype gif=%CD%\viewers\i_view32.exe "%%1" assoc .gif=gif ftype bmp=%CD%\viewers\i_view32.exe "%%1" assoc .bmp=bmp ftype nfo=c:\windows\notepad.exe "%%1" assoc .nfo=nfo