Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- :: goto:NOTIF
- assoc .tif|find /i "tif">nul
- if errorlevel 1 goto:TIF
- ftype tif|find /i "%ProgramFiles%\Imaging\Imaging.exe">nul
- if errorlevel 1 goto:TIF
- :: echo no needed!
- exit
- :TIF
- pushd \\server08\log$\TIF
- echo *** %date:~-10% %time:~,8% Machine %username%@%computername% tif associating..>>%computername%.log
- popd
- ASSOC .tif=tif
- FTYPE tif="%ProgramFiles%\Imaging\Imaging.exe" "%%1"
- echo tif associated succesfully!
- goto:EOF
- :NOTIF
- assoc .tif=
- ftype tif=
- goto:EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement