Jump to content

associate file


jquintino

Recommended Posts

hello to all again

there is a way to associate pdf files to pdfreader withou run the program.

i try to run unattended installation and after kill it but dont work.

i now there is away by registry but i working on xp_pt_pro

thanks for help

Link to comment
Share on other sites


that topic will give you an idea on how to do it... hands at work:

@echo off
M Short %PF% Variable
FOR %%A IN ("%PROGRAMFILES%") DO SET SHORTPF=%%~sA

REG ADD "HKLM\SOFTWARE\Classes\.pdf" /VE /D "AcroExch.Document" /F
REG ADD "HKLM\SOFTWARE\Classes\AcroExch.Document\shell\open\command" /VE /D "%SHORTPF%\Adobe\Acrobat 7.0\Reader\AcroRd32.exe \"%%L\"" /F

Edited by SiMoNsAyS
Link to comment
Share on other sites

if i use this string

@echo off
M Short %PF% Variable
FOR %%A IN ("%PROGRAMAS%") DO SET SHORTPF=%%~sA

REG ADD "HKLM\SOFTWARE\Classes\.pdf" /VE /D "AcroExch.Document" /F
REG ADD "HKLM\SOFTWARE\Classes\AcroExch.Document\shell\open\command" /VE /D "%SHORTPF%\PDFREADER\PDFReader.exe \"%%L\"" /F

gives me a error acesse denied to that file :o

i using xp _pt_pro with admin login.

this should work with any xp pro ? :huh:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...