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 ...
-
31st August 2007, 05:10 AM #1 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
-
-
IDG Tech News
-
31st August 2007, 07:21 AM #2 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!)
-
-
3rd September 2007, 01:28 AM #3 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).
-
-
3rd September 2007, 07:22 AM #4 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)
???
-
-
3rd September 2007, 07:30 AM #5 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 ...)
-
-
10th September 2007, 04:40 AM #6 Re: File Associations
This did the trick, thanks all
-
-
10th September 2007, 11:36 AM #7 Re: File Associations
i guess my old grey matter isn't as addled as I thought
-
SHARE: 
Similar Threads
-
By Geoff in forum Windows
Replies: 12
Last Post: 20th November 2006, 01:33 PM
-
By alonebfg in forum Windows
Replies: 12
Last Post: 7th November 2006, 09:19 AM
-
By Face-Man in forum Windows
Replies: 9
Last Post: 28th April 2006, 12:14 PM
-
By tosca925 in forum Scripts
Replies: 4
Last Post: 23rd March 2006, 06: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
-
Forum Rules