+ Post New Thread
Results 1 to 7 of 7
Windows Thread, File Associations in Technical; Hi ladies and gents, just having a recurring problem with pdf files. We are using Windows XP machines on a ...
  1. #1
    OutLawTorn's Avatar
    Join Date
    Jul 2007
    Location
    Sydney, Australia
    Posts
    216
    Thank Post
    8
    Thanked 8 Times in 8 Posts
    Rep Power
    33

    File Associations

    Hi ladies and gents,

    just having a recurring problem with pdf files. We are using Windows XP machines on a Windows 2003 server domain, and use Altiris to deploy software.

    Whenever staff members try to open PDF files, it defaults to opening them in Photoshop. If they right-click on the files and go through the choose program steps, even if they click the "always use this program as default" option it still eventually goes back to photoshop, even if no new software has been deployed to the workstations.

    Does anyone have a script or registry key we could setup to run on startup, to re-associate the files with acrobat?

    Thanks,
    Olt

  2. #2

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,159
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    125

    Re: File Associations

    Look at the ftype and assoc command.

    If you type
    assoc .pdf
    you should see that a PDF is an "AcroExch.document" and if you then type
    ftype AcroExch.document
    you will see what app is being used to open such a file - I'm guessing you'll find Photoshop.

    To fix it, add something to the machine startup script to call:

    ftype AcroExch.document="C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe" "%1

    (but check where Acrobat Reader actually is!)

  3. #3
    OutLawTorn's Avatar
    Join Date
    Jul 2007
    Location
    Sydney, Australia
    Posts
    216
    Thank Post
    8
    Thanked 8 Times in 8 Posts
    Rep Power
    33

    Re: File Associations

    Thanks for your help.

    The command works to change the path, however could not get it to script. Using a batch file, it ignores the %1 at the end, and adding it as itself in a GPO as a startup script and it doesn't seem to be applied (yet an existing logon script in the same GPO still runs).

  4. #4
    kearton's Avatar
    Join Date
    May 2007
    Location
    Yorkshire, via NZ ;)
    Posts
    908
    Thank Post
    178
    Thanked 119 Times in 96 Posts
    Rep Power
    49

    Re: File Associations

    I might be wrong, but if you're using parameters (eg %1) from within a script instead of command line, you need to add another % (eg %%1)

    ???

  5. #5

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,159
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    125

    Re: File Associations

    Yes - double up the % sign in a batch file (that almost always gets me; I test things out just at a prompt and then paste into the batch file which then doesn't work ...)

  6. #6
    OutLawTorn's Avatar
    Join Date
    Jul 2007
    Location
    Sydney, Australia
    Posts
    216
    Thank Post
    8
    Thanked 8 Times in 8 Posts
    Rep Power
    33

    Re: File Associations

    This did the trick, thanks all

  7. #7
    kearton's Avatar
    Join Date
    May 2007
    Location
    Yorkshire, via NZ ;)
    Posts
    908
    Thank Post
    178
    Thanked 119 Times in 96 Posts
    Rep Power
    49

    Re: File Associations

    i guess my old grey matter isn't as addled as I thought



SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 12
    Last Post: 20th November 2006, 02:33 PM
  2. deploy a reg file
    By alonebfg in forum Windows
    Replies: 12
    Last Post: 7th November 2006, 10:19 AM
  3. File permissions
    By Face-Man in forum Windows
    Replies: 9
    Last Post: 28th April 2006, 01:14 PM
  4. Replies: 4
    Last Post: 23rd March 2006, 07:27 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •